chore: add surge preview

This commit is contained in:
羽熙 2020-11-08 16:01:47 +08:00
parent 997d68636e
commit 14bdc858d4
1 changed files with 17 additions and 0 deletions

17
.github/preview.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: 🔂 Surge PR Preview
on: [push, pull_request_target]
jobs:
preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: afc163/surge-preview@v1
with:
surge_token: ${{ secrets.SURGE_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
build: |
yarn --frozen-lockfile
yarn site:build
dist: public