this repo has no description
1name: Stage app for PR preview
2on:
3 pull_request:
4 types: [opened, reopened, synchronize, closed]
5
6jobs:
7 staging_app:
8 runs-on: ubuntu-latest
9
10 # Only run one deployment at a time per PR.
11 concurrency:
12 group: scrapscript-pr-${{ github.event.number }}
13
14 # Create a GitHub deployment environment per staging app so it shows up
15 # in the pull request UI.
16 environment:
17 name: scrapscript-pr-${{ github.event.number }}
18 url: ${{ steps.deploy.outputs.url }}/repl
19
20 steps:
21 - uses: actions/checkout@v4
22
23 - name: Deploy
24 id: deploy
25 uses: superfly/fly-pr-review-apps@1.2.1
26 with:
27 name: scrapscript-pr-${{ github.event.number }}
28 region: ewr
29 org: personal
30 env:
31 FLY_API_TOKEN: ${{ secrets.FLY_API_DEPLOY_TOKEN }}