Skip to content

Commit

Permalink
ci: add surge preview (#289)
Browse files Browse the repository at this point in the history
* workflow: add surge preview

* fix: 完善构建流程

* fix: 修复执行命令

* Update .github/workflows/preview.yml

Co-authored-by: 偏右 <afc163@gmail.com>

Co-authored-by: 偏右 <afc163@gmail.com>
  • Loading branch information
xiaohuoni and afc163 committed Aug 18, 2020
1 parent d7d26d7 commit 3b561ff
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: 🔂 Surge PR Preview

on: [push, 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 build
yarn doc:build
dist: dist

0 comments on commit 3b561ff

Please sign in to comment.