From b468f7a4455ce8009fd64cbaeb8397364140ce01 Mon Sep 17 00:00:00 2001 From: Euan Meston Date: Sun, 31 May 2026 17:29:51 +0100 Subject: [PATCH] tweaked deployment workflow --- .github/workflows/deploy_prod.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy_prod.yml b/.github/workflows/deploy_prod.yml index 0f0a7a67..e871d2e4 100644 --- a/.github/workflows/deploy_prod.yml +++ b/.github/workflows/deploy_prod.yml @@ -12,14 +12,15 @@ jobs: - name: Move event_data run: | cp -r event_data/ backend/ + - name: Install & Configure Railway CLI + shell: bash + run: | + curl -fsSL https://railway.app/install.sh | bash + echo "$HOME/.railway/bin" >> $GITHUB_PATH - name: Deploy to Railway - uses: railwayapp/deploy-action@v1 - with: - token: ${{ secrets.RAILWAY_TOKEN }} - service: owl-be-alt - environment: production - - name: Set release version - uses: railwayapp/deploy-action@v1 - with: - token: ${{ secrets.RAILWAY_TOKEN }} - command: variables --set RELEASE_VERSION=${{ github.event.release.tag_name }} --service owl-be-alt --skip-deploys + env: + RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }} + run: | + cd backend + railway variables --set RELEASE_VERSION=${{ github.event.release.tag_name }} --service owl-be-alt --skip-deploys + railway up --service owl-be-alt