Skip to content

Commit

Permalink
ci: deploy using railway cli
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <logan@mcan.sh>
  • Loading branch information
mcansh committed Dec 7, 2023
1 parent 6376f06 commit aa26635
Showing 1 changed file with 24 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ♻️ Purge Cloudflare cache
name: 🚀 Deploy

on:
push:
Expand All @@ -10,9 +10,32 @@ concurrency:
cancel-in-progress: true

jobs:
deploy:
name: 🚀 Deploy
runs-on: ubuntu-latest

steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4

- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
node-version: 20

- name: 📥 Install dependencies
run: npm i -g @railway/cli

- name: 🚀 Deploy
run: railway up

env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}

purge:
name: ♻️ Purge Cloudflare cache
runs-on: ubuntu-latest
needs: deploy

steps:
- name: ⬇️ Checkout repo
Expand Down

0 comments on commit aa26635

Please sign in to comment.