Skip to content

.github/workflows/main.yml #519

.github/workflows/main.yml

.github/workflows/main.yml #519

Workflow file for this run

on:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
# Run daily at 3:33 UTC (11:33 PM EST)
- cron: '33 3 * * *'
defaults:
run:
working-directory: build-ctc-db
jobs:
deploy_fly_io:
name: deploy to fly.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm install
- run: node app.js
env:
GOOGLE_SHEETS_API_KEY: ${{ secrets.GOOGLE_SHEETS_API_KEY }}
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}