From 9b1ede43416d3b0ccccc53edc281ead10f5a6567 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BF=A1=E9=91=AB-King?= <45808948@qq.com> Date: Mon, 26 Aug 2019 13:51:35 +0800 Subject: [PATCH 1/2] Create deploy-site.yml --- .github/workflows/deploy-site.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/deploy-site.yml diff --git a/.github/workflows/deploy-site.yml b/.github/workflows/deploy-site.yml new file mode 100644 index 0000000000..243730d94c --- /dev/null +++ b/.github/workflows/deploy-site.yml @@ -0,0 +1,19 @@ +name: Deploy website +on: + release: + branches: + - master +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@master + + - name: Deploy website + uses: JamesIves/github-pages-deploy-action@master + env: + ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} + BRANCH: gh-pages + FOLDER: _site + BUILD_SCRIPT: npm install && npm run predeploy From 823e561234c2b03615f59fd27628185412f10038 Mon Sep 17 00:00:00 2001 From: ycjcl868 <45808948@qq.com> Date: Mon, 26 Aug 2019 13:52:40 +0800 Subject: [PATCH 2/2] rm: old site workflow --- .github/main.workflow | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 .github/main.workflow diff --git a/.github/main.workflow b/.github/main.workflow deleted file mode 100644 index 6625e9a191..0000000000 --- a/.github/main.workflow +++ /dev/null @@ -1,16 +0,0 @@ -workflow "Deploy website" { - on = "release" - resolves = ["Deploy"] -} - -action "Deploy" { - uses = "JamesIves/github-pages-deploy-action@master" - secrets = [ - "ACCESS_TOKEN", - ] - env = { - BUILD_SCRIPT = "npm install && npm run predeploy" - BRANCH = "gh-pages" - FOLDER = "_site" - } -}