Skip to content

Commit

Permalink
add railway deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Aug 31, 2024
1 parent 73c83fb commit 549e358
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy to Railway

on:
push:
branches: [main]

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3


- name: Node setup
uses: actions/setup-node@v4
with:
node-version: '20.x'

- uses: pnpm/action-setup@v4

- name: Install packages
run: pnpm install

- name: Install Railway
run: pnpm i -g @railway/cli

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

0 comments on commit 549e358

Please sign in to comment.