Deploy Fly #32
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
# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/ | |
name: Deploy Fly | |
on: | |
workflow_dispatch: | |
jobs: | |
app: | |
name: Deploy app | |
runs-on: ubuntu-latest | |
concurrency: deploy-fly-app-group | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- run: flyctl deploy --config ./packages/app/fly.toml --remote-only --build-secret SERVER_HOST=animegarden-server-production.internal --build-secret APP_HOST=garden.breadio.wiki | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
server: | |
name: Deploy server | |
runs-on: ubuntu-latest | |
concurrency: deploy-fly-server-group | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- run: flyctl deploy --config ./packages/server/fly.toml --remote-only | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} |