修复预览文档badge无法显示的问题,更新依赖 #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 部署(生产环境) | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
lint: | |
name: 检查文档格式 | |
uses: ./.github/workflows/lint.yml | |
with: | |
fix: false | |
build: | |
name: 构建文档 | |
uses: ./.github/workflows/build.yml | |
send-dispatch: | |
name: 请求部署上线 | |
if: github.repository == 'zotero-chinese/wiki' && github.event_name != 'pull_request' | |
needs: | |
- lint | |
- build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Repository Dispatch | |
uses: peter-evans/repository-dispatch@v3 | |
with: | |
token: ${{ secrets.ACCESS_TOKEN }} | |
repository: zotero-chinese/website | |
event-type: update-content |