Merge pull request #49 from Dnreikronos/dev #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Processor to Railway | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "backend/src/processor.ts" | |
| - "backend/src/db.ts" | |
| - "backend/src/config.ts" | |
| - "backend/prisma/**" | |
| - "backend/package*.json" | |
| workflow_dispatch: | |
| env: | |
| RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }} | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| environment: production | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "18" | |
| cache: "npm" | |
| cache-dependency-path: backend/package-lock.json | |
| - name: Install Railway CLI | |
| run: npm install -g @railway/cli | |
| - name: Deploy Processor to Railway | |
| run: | | |
| cd backend | |
| railway up --service processor |