wiki -> FAQ #100
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 | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
# This step checks out a copy of your repository. | |
- uses: actions/checkout@v2 | |
# This step runs `flyctl deploy`. | |
- uses: superfly/flyctl-actions@master | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
with: | |
args: "deploy" | |
notify: | |
name: Notify | |
runs-on: ubuntu-latest | |
needs: | |
- deploy | |
if: ${{ always() }} | |
steps: | |
- uses: nobrayner/discord-webhook@v1 | |
with: | |
github-token: ${{ secrets.github_token }} | |
discord-webhook: ${{ secrets.DISCORD_WEBHOOK }} |