From aafed2d41b22f9a820ed5b83cca83819766636de Mon Sep 17 00:00:00 2001 From: Henrik Andersson Date: Wed, 24 Aug 2022 13:38:49 +1000 Subject: [PATCH] chore: Only calculate checksum and upload OSX/Linux/Win binary packages to release (#237) --- .github/workflows/build.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 75e4ed5418..9793d424f8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -230,18 +230,20 @@ jobs: - name: Generate sha256 checksums if: github.event_name == 'release' run: | - for filePath in $(find artifacts/* -name '*.tar.gz' -or -name '*.zip') + releaseVersion=${{ needs.build.outputs.version }} + for filePath in $(find artifacts/* -name "OctopusTools.${releaseVersion}.*.tar.gz" -or -name "OctopusTools.${releaseVersion}.*.zip") do fileName="$(basename -- $filePath)" newSha=$(sha256sum "$filePath" | awk '{ print $1 }') - echo "$newSha $fileName" >> artifacts/OctopusTools.${{ needs.build.outputs.version }}.sha256sums + echo "$newSha $fileName" >> artifacts/OctopusTools.${releaseVersion}.SHA256SUMS done - name: Upload binaries and checksum file to release if: github.event_name == 'release' run: | - args=("v${{ needs.build.outputs.version }}") - for filePath in $(find artifacts/* -name '*.tar.gz' -or -name '*.zip' -or -name '*.sha256sums') + releaseVersion=${{ needs.build.outputs.version }} + args=("v$releaseVersion") + for filePath in $(find artifacts/* -name "OctopusTools.${releaseVersion}.*.tar.gz" -or -name "OctopusTools.${releaseVersion}.*.zip" -or -name '*.SHA256SUMS') do args+=($filePath) done