Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 28, 2025

The deploy-docs job in docs.yml only ran on releases. Now it runs on every push to main.

Changes

  • Added push trigger for main branch to workflow
  • Updated deploy-docs job condition: github.event_name == 'release' || (github.event_name == 'push' && github.ref == 'refs/heads/main')
  • Updated artifact upload step with same condition to ensure artifact is available for deployment

Behavior

Event Build Deploy
Pull request
Push to main
Release

Documentation site now stays current with main branch instead of only updating on releases.

Original prompt

On docs.yml, deploy-docs should run every time a new merge/rebase/commit happens in main


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@sonarqubecloud
Copy link

@jacksonpradolima jacksonpradolima marked this pull request as ready for review December 28, 2025 02:14
@jacksonpradolima jacksonpradolima self-requested a review as a code owner December 28, 2025 02:14
Copilot AI review requested due to automatic review settings December 28, 2025 02:14
Copilot AI changed the title [WIP] Update deploy-docs to run on main changes Deploy docs on every push to main branch Dec 28, 2025
@jacksonpradolima jacksonpradolima merged commit 197df14 into master Dec 28, 2025
31 checks passed
@jacksonpradolima jacksonpradolima deleted the copilot/update-deploy-docs-trigger branch December 28, 2025 02:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the documentation workflow to automatically deploy to GitHub Pages on every commit to the main branch, in addition to the existing deployment on releases.

  • Added push trigger for the main branch to initiate the workflow
  • Updated conditional logic to deploy documentation on both releases and main branch pushes
  • Maintained existing behavior for pull requests (build only, no deployment)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants