Skip to content

Add preview deployment to PR workflow#49

Closed
Copilot wants to merge 3 commits intomainfrom
copilot/add-pr-preview-workflow
Closed

Add preview deployment to PR workflow#49
Copilot wants to merge 3 commits intomainfrom
copilot/add-pr-preview-workflow

Conversation

Copy link
Contributor

Copilot AI commented Mar 6, 2026

Extend the PR build workflow to deploy a staging preview of the site using GitHub Pages preview deployments.

  • Add pages: write and id-token: write permissions
  • Upload build artifact via actions/upload-pages-artifact@v4
  • Add deploy-preview job using actions/deploy-pages@v4 with preview: true
  • Per-PR concurrency group (preview-${{ github.event.pull_request.number }}) with cancel-in-progress: true
  • Preview uses a separate github-pages-preview environment to avoid interfering with production
Original prompt

This section details on the original issue you should resolve

<issue_title>Build preview on PR</issue_title>
<issue_description>Extend the PR workflow to build the website so that we can preview it before publishing. Preview should produce a full website on a staging environment.</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: waldekmastykarz <11164679+waldekmastykarz@users.noreply.github.com>
Copilot AI changed the title [WIP] Extend PR workflow to build website preview Add preview deployment to PR workflow Mar 6, 2026
@waldekmastykarz waldekmastykarz marked this pull request as ready for review March 6, 2026 12:53
Copilot AI temporarily deployed to github-pages-preview March 6, 2026 12:54 Inactive
@garrytrinder
Copy link
Member

Is this attempting to deploy a pull request as a GitHub Pages preview site? (NOTE: This feature is only in alpha currently and is not available to the public!)

Source: https://github.com/actions/deploy-pages?tab=readme-ov-file#inputs-

Need to confirm whether the preview functionality was released to the public. If not, then an alternative would be to deploy to another repo configured with GH Pages.

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.

Build preview on PR

3 participants