You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
599 B
30 lines
599 B
name: Deploy CI
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@master
|
|
|
|
- name: install
|
|
run: npm install
|
|
|
|
- name: plugins
|
|
run: yarn add umi-plugin-antd-theme umi-plugin-pro
|
|
|
|
- name: site
|
|
run: npm run site
|
|
|
|
- name: deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
env:
|
|
github_token: ${{ secrets.ACTION_TOKEN }}
|
|
PUBLISH_BRANCH: gh-pages
|
|
PUBLISH_DIR: ./dist
|
|
with:
|
|
emptyCommits: false
|
|
|