Conversation
There was a problem hiding this comment.
Pull request overview
Updates the raw-mirror publishing workflow to be more flexible about where mirrored artifacts are sourced from during the staging step.
Changes:
- Adds fallback artifact lookup logic: prefer
public/, then fall back tostatic/, thenstatic/images/branding/<basename>. - Improves the failure message to include the additional checked locations when an artifact can’t be found.
Comment on lines
+87
to
+93
| # Support multiple potential build locations: prefer public/, fall back to static/ (some builds place assets there). | ||
| source_file="public/$path" | ||
| if [ ! -f "$source_file" ]; then | ||
| echo "Missing built artifact: $source_file" | ||
| exit 1 | ||
| # try static/ (source assets present in repo) | ||
| if [ -f "static/$path" ]; then | ||
| source_file="static/$path" | ||
| else |
Comment on lines
+94
to
+100
| # try static/images/branding/<basename> for image-only fallbacks | ||
| base="$(basename "$path")" | ||
| if [ -f "static/images/branding/$base" ]; then | ||
| source_file="static/images/branding/$base" | ||
| else | ||
| echo "Missing built artifact: public/$path (also checked static/$path and static/images/branding/$base)" | ||
| exit 1 |
Comment on lines
+87
to
88
| # Support multiple potential build locations: prefer public/, fall back to static/ (some builds place assets there). | ||
| source_file="public/$path" |
…estrict image fallback to images/ prefix
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.
No description provided.