Skip to content

Conversation

@thib3113
Copy link
Owner

This change sets up a robust deployment system using GitHub Pages.
It switches the deployment method from "GitHub Actions" source to "Deploy from a branch" source, allowing multiple versions (production and PR previews) to coexist on the gh-pages branch.

Key Features:

  1. Production: Pushes to main are deployed to the root of the gh-pages branch.
  2. Previews: Pull Requests trigger a deployment to a subfolder pr-<number> on the gh-pages branch.
  3. Notifications: The PR is automatically commented with the link to the preview.
  4. Cleanup: Closing a PR automatically removes its preview folder.

IMPORTANT: After merging this PR (or pushing these changes), you must go to your repository Settings -> Pages and change the Source to "Deploy from a branch". Select the "gh-pages" branch and the "/(root)" folder. (Note: The gh-pages branch will be created automatically by the first run of the workflow).


PR created automatically by Jules for task 11956946793758481260 started by @thib3113

- Replaced old artifact-based deploy workflow with branch-based deployment.
- Created `deploy-production.yml`: Deploys `public/` to `gh-pages` root on push to `main`.
- Created `deploy-preview.yml`: Deploys `public/` to `gh-pages/pr-<number>` on PRs.
- Added automatic PR commenting with preview link.
- Added automatic cleanup of preview folders on PR close.
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@github-actions
Copy link
Contributor

🚀 Deploy Preview Ready!

Your changes have been deployed to a temporary environment:
https://thib3113.github.io/boks-web-ble/pr-3/index.html

This preview will be updated automatically with new commits.

@thib3113 thib3113 marked this pull request as ready for review January 30, 2026 21:28
@thib3113 thib3113 merged commit 204447c into main Jan 30, 2026
2 checks passed
@thib3113 thib3113 deleted the setup-deploy-previews-11956946793758481260 branch January 30, 2026 21:28
@github-actions
Copy link
Contributor

🗑️ Deploy Preview Removed

The preview environment has been cleaned up as the PR is closed.

github-actions bot added a commit that referenced this pull request Jan 30, 2026
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