Skip to content

Commit af96f43

Browse files
feat: add PR previews (#214)
1 parent cf2024c commit af96f43

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/preview.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# .github/workflows/deploy.yml
2+
name: Deploy PR previews
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types:
9+
- opened
10+
- synchronize
11+
jobs:
12+
deploy-preview:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Deploy PR Preview
17+
uses: rossjrw/pr-preview-action@v1.4.3
18+
with:
19+
token: ${{ secrets.PREVIEW_TOKEN }}
20+
preview-branch: gh-pages
21+
source-dir: .
22+
umbrella-dir: pr-preview
23+
action: auto

0 commit comments

Comments
 (0)