Skip to content

Commit

Permalink
workflow触发机制优化: 增加部署触发条件
Browse files Browse the repository at this point in the history
  • Loading branch information
Null committed Aug 15, 2024
1 parent d78238f commit 8702d42
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ jobs:
uses: actions/configure-pages@v3 # 在工作流程自动配置GithubPages
- name: Install dependencies
run: pnpm install # 安装依赖

- name: Generate Changelog
run: pnpm changelog

- name: Commit and push Changelog
run: |
git add CHANGELOG.md
git commit -m "Update Changelog"
git push origin HEAD:${{ github.ref }}
- name: Build with VitePress
run: |
pnpm run docs:build # 启动项目
Expand Down

0 comments on commit 8702d42

Please sign in to comment.