Skip to content

ci: Only trigger docs deployment when docs/ changes#3

Merged
wutongci merged 3 commits into
astercloud:mainfrom
lwmacct:date/251127-02-38
Nov 27, 2025
Merged

ci: Only trigger docs deployment when docs/ changes#3
wutongci merged 3 commits into
astercloud:mainfrom
lwmacct:date/251127-02-38

Conversation

@lwmacct

@lwmacct lwmacct commented Nov 26, 2025

Copy link
Copy Markdown
Contributor

Summary

  • Add paths filter to docs deployment workflow - only triggers when docs/** files change
  • Add PR build support for validation without deployment
  • Optimize workflow with working-directory and fetch-depth: 0

Changes

  • push and pull_request triggers now filtered by paths: ["docs/**", ".github/workflows/deploy-docs.yml"]
  • Deploy step skipped for pull requests (if: github.event_name != 'pull_request')
  • Use working-directory: docs instead of cd docs commands

Test plan

  • Verify workflow does NOT trigger when only Go code changes
  • Verify workflow triggers when docs/ files change
  • Verify PR builds succeed without deploying

🤖 Generated with Claude Code

- Add paths filter to only run workflow when docs/** files change
- Add PR build support (build without deploy for validation)
- Add fetch-depth: 0 for complete git history
- Use working-directory instead of cd commands
- Skip deploy step for pull requests

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

lwmacct and others added 2 commits November 27, 2025 02:54
- Skip Go CI when only docs/ or markdown files change
- Add timeout-minutes: 10 to build job to prevent hanging

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Only trigger docs deployment when actual docs content changes,
not when the workflow file itself is modified.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@wutongci
wutongci merged commit dcaf9e1 into astercloud:main Nov 27, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants