Skip to content

Add preview deployments for PR's - #2755

Open
rezrah wants to merge 3 commits into
mainfrom
rezrah/add-preview-deployment
Open

Add preview deployments for PR's#2755
rezrah wants to merge 3 commits into
mainfrom
rezrah/add-preview-deployment

Conversation

@rezrah

@rezrah rezrah commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • I have read and followed the Guidance for submissions involving paid services.
  • My contribution adds a new instruction, prompt, agent, skill, workflow, or canvas extension file in the correct directory.
  • The file follows the required naming convention.
  • The content is clearly structured and follows the example format.
  • I have tested my instructions, prompt, agent, skill, workflow, or canvas extension with GitHub Copilot.
  • I have run npm start and verified that README.md is up to date.
  • I am targeting the main branch for this pull request.

Description

  • Adds workflow to deploy the public website to preview environments on pull requests.
    • This doesn't work for forks, only for users with write access to the repo
    • Forks will still be able to build the site, just not deploy
  • Removes the previous build workflow for PRs. Build CI is consolidated into the deploy workflow.

Type of Contribution

  • New instruction file.
  • New prompt file.
  • New agent file.
  • New plugin.
  • New skill file.
  • New agentic workflow.
  • New canvas extension.
  • Update to existing instruction, prompt, agent, plugin, skill, workflow, or canvas extension.
  • Other (please specify):

General infra upgrade


Additional Notes


By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.

Copilot AI balanced review requested due to automatic review settings August 21, 2026 09:18
@rezrah
rezrah requested a review from aaronpowell as a code owner August 21, 2026 09:18
@github-actions github-actions Bot added new-submission PR adds at least one new contribution workflow PR touches workflow automation labels Aug 21, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds pull-request website previews while retaining builds for forks.

Changes:

  • Adds a PR-triggered GitHub Pages preview workflow.
  • Replaces the previous website build workflow.
Show a summary per file
File Description
.github/workflows/deploy-website-preview.yml Builds and conditionally deploys PR previews.
.github/workflows/build-website.yml Removes the superseded build-only workflow.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Comment thread .github/workflows/deploy-website-preview.yml Outdated
Copilot AI review requested due to automatic review settings August 21, 2026 09:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Balanced

id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
with:
preview: true

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

It's fine, i've enabled the feature on the repo and deployment will not occur on forks.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review details

Suppressed comments (1)

.github/workflows/deploy-website-preview.yml:86

  • actions/deploy-pages@v4.0.5 documents this preview input as an alpha feature that is not publicly available. Unless this repository is explicitly enrolled in that private alpha, the deployment API will reject these runs, so deleting the existing build workflow leaves affected PRs without a successful replacement. Use a supported preview-hosting mechanism (or retain build-only CI until Pages previews are enabled).
          preview: true
  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-submission PR adds at least one new contribution workflow PR touches workflow automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants