Merge pull request #117 from gfa-cc-after/fix/remove-Vet-text-from-Se… #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup an action to run the Backend CD for PRs | |
# Continous Deployment for Backend | |
# name of the action | |
name: Backend CD | |
# when should it run | |
on: | |
push: #merged into main | |
branches: | |
- main | |
# what should it do | |
jobs: | |
# name of the job | |
build: | |
# what should it run on | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
# default values for all the steps | |
defaults: | |
run: | |
working-directory: backend | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install Railway | |
run: npm i -g @railway/cli | |
- name: Deploy to Railway | |
run: railway up --environment production --service backend | |
env: | |
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }} |