Repository navigation
Add PR site preview workflow - #6
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
🌐 Site PreviewPreview of the landing page for this PR: 🔗 https://smokeshow.helpmanual.io/0g5o2j1z3q3s0g2s6m3x/ Built from 4046c05 |
There was a problem hiding this comment.
Pull request overview
This PR adds an automated branch preview pipeline for the static torchio.org landing page by staging the site into _site, uploading it to Smokeshow, and posting a sticky PR comment with the preview URL.
Changes:
- Added a
mise run buildtask to stage the static site into_site. - Added a GitHub Actions workflow to upload
_siteto Smokeshow on non-mainpushes and comment the matching PR with the preview link. - Documented the new local build/staging command in the README.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| README.md | Documents mise run build for staging the public site artifact locally. |
| mise.toml | Adds a build task that stages the site content into _site (matching the deploy artifact structure). |
| .github/workflows/preview.yml | New workflow to build _site, upload to Smokeshow, find the matching PR, and post/update a sticky preview comment. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+41
to
+44
| SMOKESHOW_AUTH_KEY: ${{ secrets.SMOKESHOW_AUTH_KEY || env.SMOKESHOW_AUTH_KEY }} | ||
| SMOKESHOW_GITHUB_STATUS_DESCRIPTION: Site preview | ||
| SMOKESHOW_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| SMOKESHOW_GITHUB_PR_HEAD_SHA: ${{ github.sha }} |
Comment on lines
+45
to
+48
| run: | | ||
| uvx smokeshow upload ./_site 2>&1 | tee /tmp/smokeshow_output.txt | ||
| URL=$(grep -oE 'https://smokeshow[^ ]+' /tmp/smokeshow_output.txt | tail -1 | sed 's/,$//') | ||
| echo "preview_url=$URL" >> "$GITHUB_OUTPUT" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[Generated by a coding agent]
Summary
_siteand set a commit status.mise run buildfor staging the public site artifact locally and in CI.Validation
mise run builduv run python scripts/check_site.py --externalmise run checknode --check assets/js/main.jsgit diff --check