mirror of
https://gitee.com/easii/mapstruct-plus.git
synced 2025-12-08 01:58:55 +08:00
Update gh-pages.yml
This commit is contained in:
parent
314174ddc0
commit
866f140e4f
14
.github/workflows/gh-pages.yml
vendored
14
.github/workflows/gh-pages.yml
vendored
@ -7,15 +7,15 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: npm install
|
- run: npm install
|
||||||
# 文档编译命令,如果是 react 模板需要修改为 npm run docs:build
|
# 文档编译命令,如果是 react 模板需要修改为 npm run docs:build
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
- name: Deploy
|
- name: Publish github pages
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
run: |
|
||||||
with:
|
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/linpeilie/mapstruct-plus.git
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
npx gh-pages -d build -u "github-actions-bot <support+actions@github.com>"
|
||||||
# 文档目录,如果是 react 模板需要修改为 docs-dist
|
env:
|
||||||
publish_dir: ./dist
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user