From 5231c655aedffabe84dcad53e2c441cff40fb601 Mon Sep 17 00:00:00 2001 From: R Date: Thu, 19 Nov 2026 09:45:31 -0300 Subject: [PATCH] ci: each attempt of a run deploys its own Pages artifact A rerun of a job on main reruns Pages after it, whose artifact then sat beside the first attempt's under the one name github-pages, and deploy-pages refused the two (run 44363778421, attempt 2). The artifact is now named github-pages-, and deploy-pages deploys that one. --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 91ee7904..c2f41434 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -207,8 +207,11 @@ jobs: python3 tools/site/redirect.py --to https://webcpporg.github.io/ --prefix /webcpp/ --out bin/redirect + # Each attempt of the run uploads its own artifact and deploys that one: a rerun's artifact + # stays beside the earlier attempts', and deploy-pages refuses a name two artifacts share. - uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 with: + name: github-pages-${{ github.run_attempt }} path: bin/redirect - uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0 @@ -216,3 +219,5 @@ jobs: - name: Deploy id: deploy uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1 + with: + artifact_name: github-pages-${{ github.run_attempt }}