Fly Deploy #218
This file contains hidden or 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
| # See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/ | |
| name: Fly Deploy | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| name: Deploy app | |
| runs-on: ubuntu-latest | |
| concurrency: deploy-group # optional: ensure only one action runs at a time | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: superfly/flyctl-actions/setup-flyctl@master | |
| - run: | | |
| flyctl deploy --remote-only --config fly.toml \ | |
| --build-secret DATABASE_URI=${{ secrets.DATABASE_URI }} \ | |
| --build-secret PAYLOAD_SECRET=${{ secrets.PAYLOAD_SECRET }} \ | |
| --build-secret S3_BUCKET=${{ secrets.S3_BUCKET }} \ | |
| --build-secret S3_ACCESS_KEY_ID=${{ secrets.S3_ACCESS_KEY_ID }} \ | |
| --build-secret S3_SECRET_ACCESS_KEY=${{ secrets.S3_SECRET_ACCESS_KEY }} \ | |
| --build-secret S3_REGION=${{ secrets.S3_REGION }} \ | |
| env: | |
| FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} |