Skip to content

Revert Pages actions v4->v5 in release.yml to fix broken prod deploy - #883

Merged
Marina He (hemarina) merged 1 commit into
mainfrom
fix/revert-pages-actions-v5
May 20, 2026
Merged

Revert Pages actions v4->v5 in release.yml to fix broken prod deploy#883
Marina He (hemarina) merged 1 commit into
mainfrom
fix/revert-pages-actions-v5

Conversation

@hemarina

Copy link
Copy Markdown
Contributor

Summary

Revert actions/upload-pages-artifact and actions/deploy-pages from v5 back to v4 in release.yml.

Why

The v4 → v5 bump introduced in #876 broke the production deploy. After PR #876 merged, the live site at https://azure.github.io/awesome-azd/ began serving the raw README.md (Jekyll-rendered) instead of the Docusaurus gallery, even though the Release Awesome Azd workflow continues to report green.

Root cause:

  • actions/upload-pages-artifact@v5 updated its internal dependency to actions/upload-artifact@v7 (per its release notes: "Update upload-artifact action to version 7").
  • upload-artifact@v7 produces artifacts using the new immutable-artifacts API.
  • actions/deploy-pages@v5 was not updated to consume that new format — its release notes are limited to a Node.js 24 bump and small chores.
  • Net effect: the upload step appears to succeed, the deploy step appears to succeed, but the artifact GitHub Pages actually serves is empty/incorrect, so Pages falls back to whatever exists at the configured branch source — i.e., the source tree that sync-gh-pages.yml force-pushes to gh-pages — which Jekyll renders as README.md.

Change

-        uses: actions/upload-pages-artifact@fc324d35…  # v5.0.0
+        uses: actions/upload-pages-artifact@7b1f4a76…  # v4.0.0
...
-        uses: actions/deploy-pages@cd2ce8fc…           # v5.0.0
+        uses: actions/deploy-pages@d6db9016…           # v4.0.5

Both pinned by SHA. Other action bumps from #876 (checkout v6.0.2, setup-node v6.4.0) are kept.

Validation

  • After merge, dispatch Release Awesome Azd on gh-pages and verify https://azure.github.io/awesome-azd/ renders the gallery (not the README).
  • Re-upgrade to v5 once actions/deploy-pages ships a release that aligns with upload-artifact@v7.

actions/upload-pages-artifact@v5 internally upgraded to upload-artifact@v7,
which produces artifacts in a format that actions/deploy-pages@v5 cannot
consume. Both steps report success but the published artifact is empty, so
GitHub Pages falls back to serving the gh-pages branch via Jekyll, rendering
README.md instead of the Docusaurus gallery.

Revert both to v4 (still SHA-pinned) until deploy-pages ships an aligned
release.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

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

This PR aims to restore the GitHub Pages production deployment for the Docusaurus-based Awesome AZD site by reverting the Pages Actions from v5 back to v4 in the release workflow, aligning the upload and deploy steps to a compatible artifact format.

Changes:

  • Revert actions/upload-pages-artifact from v5.0.0 to v4.0.0 (pinned by SHA).
  • Revert actions/deploy-pages from v5.0.0 to v4.0.5 (pinned by SHA).

Comment thread .github/workflows/release.yml
@hemarina
Marina He (hemarina) enabled auto-merge (squash) May 20, 2026 17:15
@hemarina
Marina He (hemarina) merged commit cd74829 into main May 20, 2026
4 of 5 checks passed
@hemarina
Marina He (hemarina) deleted the fix/revert-pages-actions-v5 branch May 20, 2026 17:17
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.

3 participants