Skip to content

Commit 4804ed8

Browse files
committed
another attempt at preview builds
1 parent 3eb7217 commit 4804ed8

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/preview.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
pull_request:
9+
push:
10+
branches:
11+
- master
12+
13+
# contents: write is required for deploying the GitHub Pages if using the default GITHUB_TOKEN
14+
# pull-requests: write is required if you want to comment the preview page url to the pull request
15+
permissions:
16+
pull-requests: write
17+
contents: write
18+
19+
# recommended to set a concurrency group
20+
concurrency:
21+
group: preview-pages-${{ github.ref }}
22+
cancel-in-progress: true
23+
24+
jobs:
25+
run:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v3
30+
31+
# run some build steps here and export the result to a directory
32+
33+
- name: Preview Pages
34+
uses: rajyan/preview-pages@v1
35+
with:
36+
source-dir: .
37+
target-branch: master
38+
configured-domain: about.bostonpython.com

0 commit comments

Comments
 (0)