forked from ajdavis/proporti.onl
-
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (30 loc) · 925 Bytes
/
deploy.yml
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
30
31
32
33
34
35
36
name: Deploy to Railway
on:
push:
branches:
- master
- dev
paths-ignore:
- 'README.md'
- 'app_config.wsgi'
- 'deploy.py'
- 'LICENSE'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install Railway CLI
run: curl -fsSL https://railway.app/install.sh | sh
- name: Deploy to Railway
run: |
if [ "${GITHUB_REF}" == "refs/heads/master" ]; then
RAILWAY_TOKEN="${{ secrets.RAILWAY_TOKEN_PROD }}" railway up --environment production --service mastodon-gender-distribution
elif [ "${GITHUB_REF}" == "refs/heads/dev" ]; then
RAILWAY_TOKEN="${{ secrets.RAILWAY_TOKEN_DEV }}" railway up --environment dev --service mastodon-gender-distribution
fi