Deploy to Fly #1430
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 Fly | |
# When the action runs | |
on: | |
push: | |
branches: [ main ] | |
# Allows the workflow to be manually triggered | |
workflow_dispatch: | |
# And re-run daily | |
schedule: | |
- cron: "0 2 * * 1-5" | |
env: | |
# How fly.io knows it's the right us | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
# What to actually do in the workflow | |
jobs: | |
deploy: | |
name: Deploy Job | |
runs-on: ubuntu-latest | |
steps: | |
# Checks out the repo to $GITHUB_WORKSPACE | |
- uses: actions/checkout@v2 | |
# Runs the deploy, provided by fly.io | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- run: flyctl deploy --remote-only |