fix deploy pipeline

This commit is contained in:
m5r 2021-08-20 14:41:37 +08:00
parent 7c2f40d8b7
commit 4b54d8e616

View File

@ -52,7 +52,7 @@ jobs:
- run: npm i -g @railway/cli
- run: railway up
env:
RAILWAY_TOKEN: secrets.RAILWAY_TOKEN_DEV
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN_DEV }}
deploy_prod:
if: github.ref == 'refs/heads/production'
@ -67,4 +67,5 @@ jobs:
- run: npm i -g @railway/cli
- run: railway up
env:
RAILWAY_TOKEN: secrets.RAILWAY_TOKEN_PROD
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN_PROD }}
# TODO: on pull_request, deploy 24hour-long deployment at {commit_short_hash}.shellphone.app, provision db and seed data