Skip to content

Commit b32e72f

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

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/preview.yml

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

0 commit comments

Comments
 (0)