File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ # pull_request and push event is supported.
2+ # This action also works for pull_request_target event, but should not be used in public repositories.
3+ # Please read https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ before using this action with pull_request_target event.
4+
5+ name : " Build PR preview"
6+
7+ on :
8+ workflow_dispatch :
9+ # pull_request:
10+ # push:
11+ # branches:
12+ # - master
13+
14+ # contents: write is required for deploying the GitHub Pages if using the default GITHUB_TOKEN
15+ # pull-requests: write is required if you want to comment the preview page url to the pull request
16+ permissions :
17+ pull-requests : write
18+ contents : write
19+
20+ # recommended to set a concurrency group
21+ concurrency :
22+ group : preview-pages-${{ github.ref }}
23+ cancel-in-progress : true
24+
25+ jobs :
26+ run :
27+ runs-on : ubuntu-latest
28+ steps :
29+ - name : Checkout
30+ uses : actions/checkout@v3
31+
32+ # run some build steps here and export the result to a directory
33+
34+ - name : Preview Pages
35+ uses : rajyan/preview-pages@v1
36+ with :
37+ source-dir : .
38+ target-branch : master
39+ configured-domain : about.bostonpython.com
You can’t perform that action at this time.
0 commit comments