From a77ba3b77df683c36a342ab420fb4fd8884b0d44 Mon Sep 17 00:00:00 2001 From: John McLear Date: Fri, 6 Nov 2026 09:36:05 +0000 Subject: [PATCH] ci(snap): promote the tested edge revision to stable instead of re-uploading Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01TcYAoDMav4BPPE9JrMtSvw --- .github/workflows/snap-publish.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/snap-publish.yml b/.github/workflows/snap-publish.yml index 6f692d27f81..92994a978af 100644 --- a/.github/workflows/snap-publish.yml +++ b/.github/workflows/snap-publish.yml @@ -78,15 +78,13 @@ jobs: # Manual gate: promote edge -> stable via GitHub Environments approval. environment: snap-store-stable steps: - - name: Download snap artifact - uses: actions/download-artifact@v8 - with: - name: etherpad-snap + # Promote the revision already on edge (the one that was tested) rather + # than re-uploading the same file: the store rejects a second upload of + # an identical binary ("Error checking upload uniqueness"). + - name: Install snapcraft + run: sudo snap install snapcraft --classic - - name: Publish to stable - uses: snapcore/action-publish@v1 + - name: Promote edge to stable env: SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} - with: - snap: ${{ needs.build.outputs.snap-file }} - release: stable + run: snapcraft promote etherpad --from-channel latest/edge --to-channel latest/stable --yes