Browse Source

📝 docs: support preview (#7204)

* 📝 docs: support preview

* change dist dir

* add umi-plugin-pro install

* Update .github/workflows/preview.yml

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

Co-authored-by: 偏右 <afc163@gmail.com>
pull/7207/head
陈帅 6 years ago
committed by GitHub
parent
commit
8a7a1a6a26
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      .github/workflows/preview.yml

18
.github/workflows/preview.yml

@ -0,0 +1,18 @@
name: 🔂 Surge PR Preview
on: [push]
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: |
npm install
npm install umi-plugin-pro --save
npm run build
dist: dist
Loading…
Cancel
Save