name: Deploy # Deploys the web server to Fly.io. # Triggers: pushing a version tag (v*), or manual dispatch. # Requires the FLY_API_TOKEN repository secret (create with # `flyctl tokens create deploy -x 999999h`). on: push: tags: ["v*"] workflow_dispatch: jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Install flyctl run: | curl -L https://fly.io/install.sh | sh echo "$HOME/.fly/bin" >> "$GITHUB_PATH" - name: Deploy run: flyctl deploy --remote-only env: FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}