This commit is contained in:
7
.github/workflows/railway-deploy.yml
vendored
7
.github/workflows/railway-deploy.yml
vendored
@@ -2,12 +2,14 @@ name: Deploy to Railway
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: ["main"]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on:
|
||||||
|
- self-hosted
|
||||||
|
- linux
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -33,4 +35,3 @@ jobs:
|
|||||||
if [ -n "${RAILWAY_SERVICE_ID:-}" ]; then SERVICE_FLAG="--service ${RAILWAY_SERVICE_ID}"; fi
|
if [ -n "${RAILWAY_SERVICE_ID:-}" ]; then SERVICE_FLAG="--service ${RAILWAY_SERVICE_ID}"; fi
|
||||||
# Deploy current repo; --yes to skip prompts
|
# Deploy current repo; --yes to skip prompts
|
||||||
railway up $PROJECT_FLAG $SERVICE_FLAG --yes
|
railway up $PROJECT_FLAG $SERVICE_FLAG --yes
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user