From e98174067223a99e03346ea03d665930cc0187f2 Mon Sep 17 00:00:00 2001 From: reubenmiller Date: Wed, 18 Nov 2026 14:54:35 +1000 Subject: [PATCH] ci(release): publish checksums for the tedge-onboard archives Attach tedge-onboard__checksums.txt (sha256sum format) to each release after all tedge-onboard archives are uploaded. go-c8y-cli finds it and verifies the archive on "c8y extensions install", instead of warning that the release does not publish checksums. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release-please.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 48386e7..1030337 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -63,3 +63,27 @@ jobs: run: | tools/onboard/build.sh "${TAG#v}" ${{ matrix.targets }} gh release upload "$TAG" tools/onboard/dist/* --clobber + + # One checksums file for all of tedge-onboard's archives, which + # "c8y extensions install" uses to verify the download. It runs after + # every build has attached its archives. + onboard-checksums: + name: tedge-onboard checksums + needs: [release-please, onboard-tool] + if: needs.release-please.outputs.released == 'true' + runs-on: ubuntu-24.04 + permissions: + contents: write + steps: + - name: Attach checksums + env: + GH_TOKEN: ${{ github.token }} + GH_REPO: ${{ github.repository }} + TAG: ${{ needs.release-please.outputs.tag }} + run: | + mkdir dist && cd dist + gh release download "$TAG" --pattern 'tedge-onboard_*.tar.gz' --pattern 'tedge-onboard_*.zip' + checksums="tedge-onboard_${TAG#v}_checksums.txt" + sha256sum tedge-onboard_* > "$checksums" + cat "$checksums" + gh release upload "$TAG" "$checksums" --clobber