Deploy to Railway #217
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
name: Deploy to Railway | |
on: | |
schedule: | |
# Runs at 05:00 UTC every day | |
- cron: '0 5 * * *' | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Use Node 16 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
- name: Install packages | |
run: yarn install --frozen-lockfile | |
- name: Install Railway | |
run: npm i -g @railway/cli | |
- name: Deploy | |
run: railway up --service kindle-flashcards | |
env: | |
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }} |