Skip to content

Commit

Permalink
ci: 优化 GitHub Actions 工作流
Browse files Browse the repository at this point in the history
- 在 ci.yml 中使用 --force 选项强制推送更新到 main 分支
- 在 release.yml 中添加执行 copy.js 脚本的步骤
  • Loading branch information
h7ml committed Dec 20, 2024
1 parent 2ecc2d2 commit a679fa7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
git config --local user.name "GitHub Action"
git config advice.ignoredHook false
git commit -m "docs(README): update README-zh.md"
git push origin main || echo "Push to repository failed"
git push origin main --force || echo "Push to repository failed"
- name: Upload build artifacts
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Build
run: |
pnpm build || echo "Build failed"
node ./scripts/copy.js
- name: Generate Changelog
run: |
npx changelogen@latest --release --bump || echo "Changelog generation failed"
Expand Down

0 comments on commit a679fa7

Please sign in to comment.