- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 198
 
Extract Netlify deployment into reusable workflow #6249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
          
 | 
    
Co-authored-by: dubzzz <[email protected]>
Co-authored-by: dubzzz <[email protected]>
Co-authored-by: dubzzz <[email protected]>
| 
           @copilot actually I changed my mind, I want to keep the publication to netlify for each commit merged on main. So your new workflow does not need to ask if it's for a draft or not. Except if this workflow can be triggered by the legacy workflow with the artifacts it just built  | 
    
…us to use it Co-authored-by: dubzzz <[email protected]>
          
 I've converted the workflow to a reusable workflow that addresses both requirements: 
 The workflow automatically determines draft mode: false for main branch pushes, true for everything else. (commit ed77c75)  | 
    
Extracted Netlify documentation deployment from the main build pipeline into a reusable workflow that can be called by other workflows or triggered manually. The main build pipeline now uses this workflow to deploy documentation, maintaining automatic deployments while also enabling manual triggers.
Changes
New reusable workflow:
.github/workflows/deploy-documentation-netlify.ymlworkflow_calltrigger for being called by other workflows with pre-built artifactsworkflow_dispatchtrigger for manual execution with PR number inputpr_number,draft, andartifact_nameinputsUpdated:
.github/workflows/build-status.ymlUsage
Automatic (via build-status.yml)
Manual
The workflow centralizes Netlify deployment logic, eliminating duplication while supporting both automatic CI/CD deployments and on-demand manual deployments.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.