From 458458369184d413ddb9a139fa995f5b49491b6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Ch=C4=99ci=C5=84ski?= Date: Mon, 30 Jan 2023 17:19:40 +0100 Subject: [PATCH] Add individual packages hash files to release (#4254) * Add script to export sha from latest.yaml to files * Comment out for testing * Comment out * Fix * Remove test comments * Use new gh action * Change get checksums action reference to commit hash from master * Comment out for testing * Change get-checksum version to branch fix-get-checksum-action * Comment out gh release if * Restore if in create release step * TEst * Remove comments * Change path * Remove unused script * Add commit SHA for get checksum action * Update .github/workflows/release-desktop.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --------- Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --- .github/workflows/release-desktop.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-desktop.yml b/.github/workflows/release-desktop.yml index a4aceac962b..f0fe2011734 100644 --- a/.github/workflows/release-desktop.yml +++ b/.github/workflows/release-desktop.yml @@ -184,6 +184,12 @@ jobs: --quiet \ --endpoint-url https://${CF_ACCOUNT}.r2.cloudflarestorage.com + - name: Get checksum files + uses: bitwarden/gh-actions/get-checksum@8b6a560c8ad3b9dab81659ae6cd1e319d8771a91 + with: + packages_dir: "apps/desktop/artifacts" + file_path: "apps/desktop/artifacts/sha256-checksums.txt" + - name: Create Release uses: ncipollo/release-action@95215a3cb6e6a1908b3c44e00b4fdb15548b1e09 if: ${{ steps.release-channel.outputs.channel == 'latest' && github.event.inputs.release_type != 'Dry Run' && github.event.inputs.github_release }} @@ -214,7 +220,8 @@ jobs: apps/desktop/artifacts/Bitwarden-${{ env.PKG_VERSION }}-universal.pkg.archive, apps/desktop/artifacts/${{ env.RELEASE_CHANNEL }}.yml, apps/desktop/artifacts/${{ env.RELEASE_CHANNEL }}-linux.yml, - apps/desktop/artifacts/${{ env.RELEASE_CHANNEL }}-mac.yml" + apps/desktop/artifacts/${{ env.RELEASE_CHANNEL }}-mac.yml, + apps/desktop/artifacts/sha256-checksums.txt" commit: ${{ github.sha }} tag: desktop-v${{ env.PKG_VERSION }} name: Desktop v${{ env.PKG_VERSION }}