From 467c8aeb47af54818f88a80d998cd8d62e58ef36 Mon Sep 17 00:00:00 2001 From: Nayef Ghattas Date: Wed, 10 Jul 2024 09:38:14 +0200 Subject: [PATCH] release: generate sha256 checksums (#40) --- .github/workflows/build.yml | 3 ++- .github/workflows/release.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ef483b7..70beaf1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -274,6 +274,7 @@ jobs: run: | tar czf otel-profiling-agent-${RELEASE_VERSION}-aarch64.tar.gz -C agent-aarch64 . tar czf otel-profiling-agent-${RELEASE_VERSION}-x86_64.tar.gz -C agent-x86_64 . + sha256sum otel-profiling-agent-${RELEASE_VERSION}-aarch64.tar.gz otel-profiling-agent-${RELEASE_VERSION}-x86_64.tar.gz > sha256sums.txt - name: Create or move previous dev tag continue-on-error: true uses: actions/github-script@v7 @@ -296,7 +297,7 @@ jobs: - name: Create pre-release uses: ncipollo/release-action@v1 with: - artifacts: otel-profiling-agent-${{ env.RELEASE_VERSION }}-*.tar.gz + artifacts: "otel-profiling-agent-${{ env.RELEASE_VERSION }}-*.tar.gz,sha256sums.txt" allowUpdates: true removeArtifacts: true omitBody: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7be49d4..235d8df 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,10 +26,11 @@ jobs: run: | tar czf otel-profiling-agent-${RELEASE_VERSION}-aarch64.tar.gz -C agent-aarch64 . tar czf otel-profiling-agent-${RELEASE_VERSION}-x86_64.tar.gz -C agent-x86_64 . + sha256sum otel-profiling-agent-${RELEASE_VERSION}-aarch64.tar.gz otel-profiling-agent-${RELEASE_VERSION}-x86_64.tar.gz > sha256sums.txt - name: Create Release uses: ncipollo/release-action@v1 with: - artifacts: "otel-profiling-agent-v*.tar.gz" + artifacts: "otel-profiling-agent-v*.tar.gz,sha256sum.txt" allowUpdates: true omitBody: true draft: true