Skip to content

Commit acd16ad

Browse files
committed
Implement a PR deploy preview
1 parent 071238c commit acd16ad

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/preview.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Deploy preview
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- reopened
7+
- synchronize
8+
- closed
9+
10+
jobs:
11+
publish-website:
12+
runs-on: ubuntu-22.04
13+
14+
steps:
15+
- name: Checkout repo
16+
uses: actions/checkout@v4
17+
18+
- name: Build website
19+
uses: ./.github/actions/build-website
20+
if: github.event.action != 'closed'
21+
22+
- name: Deploy preview
23+
uses: rossjrw/pr-preview-action@v1
24+
with:
25+
source-dir: output

0 commit comments

Comments
 (0)