mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-19 03:54:28 +08:00
22 lines
457 B
YAML
22 lines
457 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: 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
|