feat: add push_event support to modal for backend-initiated close/open #26
Workflow file for this run
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
| name: PR Preview Deployment | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize, closed] | |
| env: | |
| FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
| FLY_REGION: arn | |
| FLY_ORG: personal | |
| jobs: | |
| review: | |
| name: Deploy PR preview | |
| runs-on: ubuntu-latest | |
| # Only one deployment at a time per PR | |
| concurrency: | |
| group: pr-${{ github.event.number }} | |
| # Display preview URL in GitHub PR UI | |
| environment: | |
| name: review | |
| url: ${{ steps.deploy.outputs.url }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Deploy PR preview to Fly.io | |
| id: deploy | |
| uses: superfly/fly-pr-review-apps@1.2.1 | |
| with: | |
| config: demo/fly.toml |