From bb1da55a55bcc3943ca27a410eb4498240099c5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Mon, 16 Mar 2020 11:11:05 +0800 Subject: [PATCH] Revert "chore: pause deploy site (#20683)" (#22243) This reverts commit a0eaebc8f9294b00245dac382abc85b8e9e54a42. --- .github/workflows/deploy-site.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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..51db244ab1 --- /dev/null +++ b/.github/workflows/deploy-site.yml @@ -0,0 +1,30 @@ +name: Deploy website +on: + release: + types: [published] + branches: + - master + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@master + + - name: install + run: npm install + + - name: build + run: npm run predeploy + + - name: deploy + uses: peaceiris/actions-gh-pages@v2 + env: + ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} + # PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }} + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PUBLISH_BRANCH: gh-pages + PUBLISH_DIR: ./_site + with: + emptyCommits: false