From 51796151ce933514254d2dd59ebf0247bc6424f0 Mon Sep 17 00:00:00 2001 From: flipflip Date: Tue, 24 Nov 2026 09:10:09 +0100 Subject: [PATCH 1/4] Fix ci-pages failing on re-run due to duplicate github-pages artefact --- .github/workflows/ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 68a2d16..b34360c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -178,6 +178,7 @@ jobs: uses: actions/download-artifact@v8 with: path: build-artefacts # See Doxyfile and Makefile + pattern: fpsdk_common_versions_* # We'll get: # build-artefacts/fpsdk_common_versions_trixie/fpsdk_common/fpsdk_common_versions.txt # build-artefacts/fpsdk_common_versions_jazzy/fpsdk_common/fpsdk_common_versions.txt @@ -206,17 +207,20 @@ jobs: uses: actions/upload-pages-artifact@v5 # https://github.com/actions/upload-pages-artifact (This, not actions/upload-artifact, which doesn't work) with: path: github-pages + # Unique name per attempt, as re-running the job would otherwise produce a second artefact with the + # same name, which makes actions/deploy-pages fail ("Multiple artifacts named "github-pages"...") + name: github-pages-${{ github.run_attempt }} ##### Deploy to fixposition.github.io/fixposition-sdk (only on main branch) - name: Configure pages - if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/pull/193/merge' }} + if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/pull/232/merge' }} uses: actions/configure-pages@v6 # https://github.com/actions/configure-pages - name: Deploy pages - if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/pull/193/merge' }} + if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/pull/232/merge' }} uses: actions/deploy-pages@v5 with: - artifact_name: github-pages # https://github.com/actions/deploy-pages + artifact_name: github-pages-${{ github.run_attempt }} # https://github.com/actions/deploy-pages # eof From 2cdbf0af4100f70174f25f746da18926db2d29b5 Mon Sep 17 00:00:00 2001 From: flipflip Date: Tue, 24 Nov 2026 09:40:37 +0100 Subject: [PATCH 2/4] Deploy pages in a separate job actions/deploy-pages in the same job as actions/upload-pages-artifact sometimes doesn't find the just uploaded artefact ("No artifacts named "github-pages-1" were found"). See https://github.com/actions/deploy-pages/issues/451. Pass the artefact name via job output, so that re-running only the deploy job uses the existing artefact. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b34360c..0a1aa44 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -166,8 +166,9 @@ jobs: - ci-fpsdk-jazzy - ci-fpsdk-lyrical permissions: - pages: write - id-token: write + contents: read + outputs: + artifact_name: ${{ steps.pages-artifact-name.outputs.name }} steps: - name: Checkout uses: actions/checkout@v6 @@ -202,25 +203,38 @@ jobs: ##### Archive generated HTML as artefacts + # Unique name per attempt, as re-running the job would otherwise produce a second artefact with the + # same name, which makes actions/deploy-pages fail ("Multiple artifacts named "github-pages"...") + - name: Pages artefact name + id: pages-artifact-name + run: echo "name=github-pages-${{ github.run_attempt }}" >> ${GITHUB_OUTPUT} + # for pages deployment. Both actions make the artefact show up as a job artefact. - name: Upload pages artefact uses: actions/upload-pages-artifact@v5 # https://github.com/actions/upload-pages-artifact (This, not actions/upload-artifact, which doesn't work) with: path: github-pages - # Unique name per attempt, as re-running the job would otherwise produce a second artefact with the - # same name, which makes actions/deploy-pages fail ("Multiple artifacts named "github-pages"...") - name: github-pages-${{ github.run_attempt }} + name: ${{ steps.pages-artifact-name.outputs.name }} - ##### Deploy to fixposition.github.io/fixposition-sdk (only on main branch) + ##### Deploy to fixposition.github.io/fixposition-sdk (only on main branch) + # Separate job, as actions/deploy-pages in the same job as actions/upload-pages-artifact sometimes doesn't find the + # artefact ("No artifacts named "github-pages" were found"), see https://github.com/actions/deploy-pages/issues/451 + ci-pages-deploy: + if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/pull/232/merge' }} + runs-on: ubuntu-latest + needs: + - ci-pages + permissions: + pages: write + id-token: write + steps: - name: Configure pages - if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/pull/232/merge' }} uses: actions/configure-pages@v6 # https://github.com/actions/configure-pages - name: Deploy pages - if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/pull/232/merge' }} uses: actions/deploy-pages@v5 with: - artifact_name: github-pages-${{ github.run_attempt }} # https://github.com/actions/deploy-pages + artifact_name: ${{ needs.ci-pages.outputs.artifact_name }} # https://github.com/actions/deploy-pages # eof From 986bc73b05bb5c7af2bb906fbc1574be280f755a Mon Sep 17 00:00:00 2001 From: flipflip Date: Tue, 24 Nov 2026 09:44:54 +0100 Subject: [PATCH 3/4] Rename ci-pages job to ci-pages-build Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a1aa44..95de026 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -155,7 +155,7 @@ jobs: delete-untagged: true validate: true - ci-pages: + ci-pages-build: runs-on: ubuntu-latest container: image: ghcr.io/fixposition/fixposition-sdk:trixie-ci @@ -224,7 +224,7 @@ jobs: if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/pull/232/merge' }} runs-on: ubuntu-latest needs: - - ci-pages + - ci-pages-build permissions: pages: write id-token: write @@ -235,6 +235,6 @@ jobs: - name: Deploy pages uses: actions/deploy-pages@v5 with: - artifact_name: ${{ needs.ci-pages.outputs.artifact_name }} # https://github.com/actions/deploy-pages + artifact_name: ${{ needs.ci-pages-build.outputs.artifact_name }} # https://github.com/actions/deploy-pages # eof From 6f0b7ffe428e32fc38b84562f81f0a7a76d30f6e Mon Sep 17 00:00:00 2001 From: flipflip Date: Tue, 24 Nov 2026 11:59:39 +0100 Subject: [PATCH 4/4] trigger