Skip to content

Commit 6aa7d50

Browse files
committed
another attempt at preview builds
1 parent 3eb7217 commit 6aa7d50

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/preview.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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

0 commit comments

Comments
 (0)