Create surge-preview.yml

This commit is contained in:
xrkffgg
2021-02-18 09:55:37 +08:00
committed by GitHub
parent eb13c18a92
commit a6a35924a4

18
.github/workflows/surge-preview.yml vendored Normal file
View File

@@ -0,0 +1,18 @@
name: 🔂 Surge PR Preview
on: pull_request
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
yarn docs-dev:build
dist: docs-dist
teardown: 'true'