mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
bb1da55a55
This reverts commit a0eaebc8f9
.
31 lines
647 B
YAML
31 lines
647 B
YAML
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
|