From 8a7a1a6a26f3554faa2d08bc3f17b86e83e92f84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Sat, 15 Aug 2020 13:07:18 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs:=20support=20preview=20(#72?= =?UTF-8?q?04)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 📝 docs: support preview * change dist dir * add umi-plugin-pro install * Update .github/workflows/preview.yml Co-authored-by: 偏右 Co-authored-by: 偏右 --- .github/workflows/preview.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/preview.yml diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml new file mode 100644 index 00000000..98d410c4 --- /dev/null +++ b/.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