Skip to content

Hosting: update workflow (#11) #12

Hosting: update workflow (#11)

Hosting: update workflow (#11) #12

Workflow file for this run

name: Deploy to Railway
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Install Railway CLI
run: npm install -g @railway/cli
- name: Authenticate with Railway CLI
run: railway login --github
- name: Install dependencies
run: npm install
- name: Build the project
run: npm run build
- name: Run Prisma Migrations
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
run: npx prisma migrate deploy --schema=./prisma/schema.prisma --preview-feature
- name: Deploy to Railway
run: railway up