Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@ jobs:
done
dzip="$RUNNER_TEMP/gather/$DEFAULT.zip"
[ -d "$RUNNER_TEMP/site/$DEFAULT" ] && [ -f "$dzip" ] \
&& { mkdir -p "$RUNNER_TEMP/site/$SOURCES_DIR"; cp "$dzip" "$RUNNER_TEMP/site/$SOURCES_DIR/$DEFAULT.zip"; }
&& { mkdir -p "$RUNNER_TEMP/site/$SOURCES_DIR"; cp "$dzip" "$RUNNER_TEMP/site/$SOURCES_DIR/$DEFAULT.zip"; } \
|| true

# `generate` orders versions, writes switcher.json + index.html, and prints the
# stable-alias source dir (the newest release), or "" when no release is deployed yet.
Expand All @@ -280,7 +281,7 @@ jobs:
set -euo pipefail
stable_src=$(node "$GITHUB_WORKSPACE/.mvs/assemble/assemble.mjs" generate \
--site-dir "$RUNNER_TEMP/site" --base-url "$PAGES_URL" --required "$DEFAULT")
[ -n "$stable_src" ] && ln -s "$stable_src" "$RUNNER_TEMP/site/stable"
[ -n "$stable_src" ] && ln -s "$stable_src" "$RUNNER_TEMP/site/stable" || true

- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v5
Expand Down