Skip to content

add ci multi env

add ci multi env #61

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
- appwrite
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout PR
uses: actions/checkout@v4
- name: 📥 Setup
uses: ./.github/actions/setup-job
- name: 📥 Monorepo install
uses: ./.github/actions/pnpm-install
- name: Build workflow parser
run: |
pnpm --filter @pipelineui/workflow-parser build
- name: Build language-server
run: |
pnpm --filter @pipelineui/workflow-languageserver build
- name: Build yaml editor
run: |
pnpm --filter @pipelineui/yaml-editor build
- name: Build app
run: |
pnpm --filter @pipelineui/app build
- 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)}}