-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (27 loc) · 758 Bytes
/
deploy.yml
File metadata and controls
33 lines (27 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Manual Deploy to Railway
on:
workflow_dispatch:
inputs:
branch:
description: "Branch to deploy"
required: true
default: "main"
jobs:
deploy:
name: Deploy to Railway
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.branch }}
- name: Install Railway CLI
run: npm install -g @railway/cli
- name: Railway Link
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
run: railway link ${{ secrets.RAILWAY_PROJECT_ID }}
- name: Deploy to Railway
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
run: railway up --service serene_miracle