-
Notifications
You must be signed in to change notification settings - Fork 17
41 lines (34 loc) · 1.25 KB
/
preview.yml
File metadata and controls
41 lines (34 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# pull_request and push event is supported.
# This action also works for pull_request_target event, but should not be used in public repositories.
# Please read https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ before using this action with pull_request_target event.
name: "Build PR preview"
on:
workflow_dispatch:
#pull_request:
#push:
# branches:
# - master
permissions:
contents: read
concurrency:
group: preview-pages-${{ github.ref }}
cancel-in-progress: true
jobs:
run:
name: "Build PR preview"
runs-on: ubuntu-latest
permissions:
pull-requests: write # required to comment the preview page url to the pull request
contents: write # required for deploying the GitHub Pages if using the default GITHUB_TOKEN
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
# run some build steps here and export the result to a directory
- name: Preview Pages
uses: rajyan/preview-pages@4fdab7d665d506f4dd2092bc9897ef707888071a # v1.3.37
with:
source-dir: .
target-branch: master
configured-domain: about.bostonpython.com