Skip to content

Commit

Permalink
add ci multi env
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardoperra committed Oct 31, 2024
1 parent 89cc218 commit 442b381
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- main
- appwrite

jobs:
build:
Expand Down Expand Up @@ -31,10 +32,13 @@ jobs:
run: |
pnpm --filter @pipelineui/app build
- name: Deploy to Railway
- name: Deploy to Railway (${{env.RAILWAY_ENV}})
run: |
cd packages/app
cp nixpacks.toml .output
cp .output/server/package.json .output
cd .output
pmpm railway environment ${{env.RAILWAY_ENV}}
RAILWAY_TOKEN=${{ secrets.RAILWAY_TOKEN }} pnpm railway up -s pipelineui-server
env:
RAILWAY_ENV: ${{(github.ref == 'refs/heads/main' && 'production') || (github.ref == 'refs/heads/appwrite' && 'appwrite' || null)}}

0 comments on commit 442b381

Please sign in to comment.