-
-
Notifications
You must be signed in to change notification settings - Fork 47
29 lines (24 loc) · 681 Bytes
/
deploy.yml
File metadata and controls
29 lines (24 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Deploy to Railway
on:
push:
branches:
- "v2"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node 17
uses: actions/setup-node@v1
with:
node-version: 17.x
- name: Install redis
run: sudo apt-get install -y redis-tools redis-server
- name: Flush redis database
run: redis-cli -u ${{ secrets.REDIS_URL }} FLUSHDB
- name: Purge cache
uses: jakejarvis/cloudflare-purge-action@master
env:
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}