* 📝 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>
@@ -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