From 4b54d8e6167819e9e0f0a50f63ab8168d9ed7c1d Mon Sep 17 00:00:00 2001 From: m5r Date: Fri, 20 Aug 2021 14:41:37 +0800 Subject: [PATCH] fix deploy pipeline --- .github/workflows/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a2279e4..3125d32 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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