Revert "chore: pause deploy site (#20683)" (#22243)

This reverts commit a0eaebc8f9.
This commit is contained in:
偏右 2020-03-16 11:11:05 +08:00 committed by GitHub
parent 69a2bceb64
commit bb1da55a55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

30
.github/workflows/deploy-site.yml vendored Normal file
View File

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