Skip to content

Commit

Permalink
Try to fix deployment to production railway
Browse files Browse the repository at this point in the history
  • Loading branch information
tomouchuu committed Oct 21, 2023
1 parent 724fcd7 commit 08b4ebb
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/deployments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ jobs:
needs: create-release-pr
name: Publish frontend
runs-on: ubuntu-latest
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
if: |
needs.create-release-pr.outputs.hasChangesets == 'false' && (
contains(needs.create-release-pr.outputs.publishedPackageNames, '@haishin/tsconfig') == true ||
Expand All @@ -71,18 +69,15 @@ jobs:
- name: Install Railway
run: bun install --global @railway/cli

- name: Set service
run: railway service frontend

- name: Deploy
run: railway up
run: railway up -s "frontend"
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}

publish-backend:
needs: create-release-pr
name: Publish backend
runs-on: ubuntu-latest
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
if: |
needs.create-release-pr.outputs.hasChangesets == 'false' && (
contains(needs.create-release-pr.outputs.publishedPackageNames, '@haishin/tsconfig') == true ||
Expand All @@ -102,11 +97,10 @@ jobs:
- name: Install Railway
run: bun install --global @railway/cli

- name: Set service
run: railway service backend

- name: Deploy
run: railway up
run: railway up -s "backend"
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}

cleanup-old-release-tags:
needs: create-release-pr
Expand Down

0 comments on commit 08b4ebb

Please sign in to comment.