Skip to content

Commit 3d614e2

Browse files
committed
chore: add preview yml
1 parent 89cfd26 commit 3d614e2

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/preview.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: 🔂 Surge PR Preview
2+
3+
on:
4+
pull_request:
5+
types: [labeled]
6+
7+
jobs:
8+
preview:
9+
runs-on: ubuntu-latest
10+
if: contains(github.event.pull_request.labels.*.name, 'SurgePreview')
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: afc163/surge-preview@v1
14+
with:
15+
surge_token: ${{ secrets.SURGE_TOKEN }}
16+
github_token: ${{ secrets.GITHUB_TOKEN }}
17+
dist: .doc
18+
build: |
19+
npm install
20+
npm run docs:build

0 commit comments

Comments
 (0)