From 2ae88954a1a61f47d68ec74d38c4670251a1feac Mon Sep 17 00:00:00 2001 From: xi li <35586469+BBSQQ@users.noreply.github.com> Date: Wed, 30 Sep 2020 10:09:40 +0800 Subject: [PATCH] chore: run PR preview on pull_request (#1677) --- .github/workflows/preview.yml | 17 +++++++++++++++++ package.json | 4 ++-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/preview.yml diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml new file mode 100644 index 0000000000..48408998e4 --- /dev/null +++ b/.github/workflows/preview.yml @@ -0,0 +1,17 @@ +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 site:build + dist: public diff --git a/package.json b/package.json index 7a808e8d2c..b3e6386d57 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "tslib": "^1.13.0" }, "devDependencies": { - "@antv/gatsby-theme-antv": "^1.0.0-beta.4", + "@antv/gatsby-theme-antv": "^1.0.0-beta.8", "@babel/core": "^7.10.4", "@babel/preset-env": "^7.10.4", "@commitlint/cli": "^8.2.0", @@ -136,4 +136,4 @@ } ], "license": "MIT" -} +} \ No newline at end of file