Skip to content

refactor(ci): extract reusable workflow for deployment#496

Merged
Perdolique merged 1 commit into
masterfrom
refactor-ci-extract-reusable-workflow
Nov 23, 2025
Merged

refactor(ci): extract reusable workflow for deployment#496
Perdolique merged 1 commit into
masterfrom
refactor-ci-extract-reusable-workflow

Conversation

@Perdolique
Copy link
Copy Markdown
Owner

@Perdolique Perdolique commented Nov 22, 2025

🎯 What's cookin', homies?

This PR cleans up our CI/CD game by extracting the deployment workflow into a shared reusable workflow 🔥💪

🔧 Changes made

  • ♻️ Migrated deployment logic to the centralized .github repo's reusable workflow
  • 🗑️ Removed ~150 lines of duplicated workflow config from build-and-deploy.yml
  • 🎯 Simplified the workflow by using Perdolique/.github/.github/workflows/deploy.yml@master
  • 🔧 Pass Cloudflare secrets properly to the reusable workflow
  • 🧹 Cleaned up VS Code extensions (removed vscodeintellicode from recommendations)

💡 Why tho?

  • DRY principle 👑 - No more copy-pasting deployment logic across repos
  • Easier maintenance 🛠️ - Update deployment logic once, applies everywhere
  • Cleaner codebase ✨ - Main workflow is now just a simple reference to shared logic
  • Consistency 🎯 - Same deployment behavior across all projects

🧪 Testing

The workflow will be tested when this PR triggers the CI pipeline. It should:

  • Build the project ✅
  • Deploy to staging with a preview URL 🌐
  • Comment on the PR with deployment status 💬

Copilot AI review requested due to automatic review settings November 22, 2025 19:44
@gemini-code-assist
Copy link
Copy Markdown

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

Comment thread .github/workflows/reusable-deploy.yml Fixed
Comment thread .github/workflows/reusable-deploy.yml Fixed
Comment thread .github/workflows/reusable-deploy.yml Fixed
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Nov 22, 2025

🎉 Deployed to Cloudflare!

Copy link
Copy Markdown

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 refactors the deployment workflow by extracting deployment logic into a reusable workflow file that can be shared across repositories and monorepo setups.

Key changes:

  • Created parameterized reusable-deploy.yml with configurable inputs for build/deploy commands, artifact paths, and working directories
  • Simplified build-and-deploy.yml to call the reusable workflow with secrets
  • Added support for optional typecheck job that can be disabled

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
.github/workflows/reusable-deploy.yml New reusable workflow with parameterized inputs for deployment, supporting monorepo setups with customizable commands and paths
.github/workflows/build-and-deploy.yml Simplified to call the reusable workflow, passing Cloudflare secrets and removing duplicated job definitions

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

Comment thread .github/workflows/reusable-deploy.yml Outdated
Comment thread .github/workflows/reusable-deploy.yml Outdated
Comment thread .github/workflows/reusable-deploy.yml Outdated
Comment thread .github/workflows/reusable-deploy.yml Outdated
Comment thread .github/workflows/reusable-deploy.yml Outdated
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/reusable-deploy.yml Outdated
@Perdolique Perdolique force-pushed the refactor-ci-extract-reusable-workflow branch from 24d0d43 to 6757a85 Compare November 22, 2025 19:50
Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 22, 2025

@Perdolique I've opened a new pull request, #497, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Copy Markdown

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


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

Comment thread .github/workflows/reusable-deploy.yml Outdated
Copilot AI review requested due to automatic review settings November 22, 2025 20:07
Copy link
Copy Markdown

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.


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

Comment thread .github/workflows/reusable-deploy.yml Outdated
Comment thread .github/workflows/reusable-deploy.yml Outdated
Copilot AI review requested due to automatic review settings November 23, 2025 19:09
Copy link
Copy Markdown

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


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

Comment thread .vscode/extensions.json
Copilot AI review requested due to automatic review settings November 23, 2025 19:54
@Perdolique Perdolique force-pushed the refactor-ci-extract-reusable-workflow branch from 6901cb6 to 9535597 Compare November 23, 2025 19:54
Copy link
Copy Markdown

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.


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

Comment thread .github/workflows/build-and-deploy.yml
Comment thread .github/workflows/build-and-deploy.yml
Comment thread .vscode/extensions.json
Comment thread .github/workflows/build-and-deploy.yml
Comment thread .github/workflows/build-and-deploy.yml
@Perdolique Perdolique force-pushed the refactor-ci-extract-reusable-workflow branch from 9535597 to 464cdfa Compare November 23, 2025 20:02
Copilot AI review requested due to automatic review settings November 23, 2025 20:09
Comment thread .github/workflows/build-and-deploy.yml Fixed
- ♻️ Migrate deployment logic to reusable workflow from `.github` repo
- 🗑️ Remove `vscodeintellicode` from recommended VS Code extensions
- 🎯 Simplify `build-and-deploy.yml` by using shared workflow
- 🔧 Pass Cloudflare secrets to reusable workflow
@Perdolique Perdolique force-pushed the refactor-ci-extract-reusable-workflow branch from 85f405e to 7d88baa Compare November 23, 2025 20:11
Copy link
Copy Markdown

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.


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

Comment thread .github/workflows/build-and-deploy.yml
Comment thread .github/workflows/build-and-deploy.yml
@Perdolique Perdolique merged commit e12a318 into master Nov 23, 2025
7 checks passed
@Perdolique Perdolique deleted the refactor-ci-extract-reusable-workflow branch November 23, 2025 20:14
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.

4 participants