Add Railway deployment workflow with pinned commit SHAs
This commit is contained in:
18
.github/workflows/railway.yml
vendored
Normal file
18
.github/workflows/railway.yml
vendored
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
name: Railway Deploy
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
|
||||||
|
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b
|
||||||
|
with:
|
||||||
|
node-version: '20'
|
||||||
|
- run: npm install -g @railway/cli
|
||||||
|
- run: railway up --detach
|
||||||
|
env:
|
||||||
|
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
|
||||||
Reference in New Issue
Block a user