From ad965e54e46306fc9ce8df48aa54690ccb8fe057 Mon Sep 17 00:00:00 2001 From: Micaiah Martin <77340197+mimartin12@users.noreply.github.com> Date: Tue, 21 Dec 2021 14:25:29 -0700 Subject: [PATCH] Rename .pkg to .pkg.archive in release pipeline (#1208) * Add step to change .pkg file name * Linting --- .github/workflows/build.yml | 3 ++- .github/workflows/release.yml | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0b6e0865..acf692ff 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -253,7 +253,8 @@ jobs: shell: pwsh run: | Copy-Item -Path ./stores/chocolatey -Destination ./dist/chocolatey -Recurse - Copy-Item -Path ./dist/nsis-web/Bitwarden-Installer-${{ env._PACKAGE_VERSION }}.exe -Destination ./dist/chocolatey + Copy-Item -Path ./dist/nsis-web/Bitwarden-Installer-${{ env._PACKAGE_VERSION }}.exe ` + -Destination ./dist/chocolatey $checksum = checksum -t sha256 ./dist/chocolatey/Bitwarden-Installer-${{ env._PACKAGE_VERSION }}.exe $chocoInstall = "./dist/chocolatey/tools/chocolateyinstall.ps1" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d1ab1bec..9cc706c2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -67,6 +67,9 @@ jobs: workflow_conclusion: success branch: ${{ steps.branch.outputs.branch-name }} + - name: Rename .pkg to .pkg.archive + run: mv Bitwarden-${{ env.PKG_VERSION }}-universal.pkg Bitwarden-${{ env.PKG_VERSION }}-universal.pkg.archive + - name: Create release uses: ncipollo/release-action@95215a3cb6e6a1908b3c44e00b4fdb15548b1e09 # v2.8.5 env: @@ -95,7 +98,7 @@ jobs: Bitwarden-${{ env.PKG_VERSION }}-universal.dmg, Bitwarden-${{ env.PKG_VERSION }}-universal.dmg.blockmap, latest-mac.yml, - Bitwarden-${{ env.PKG_VERSION }}-universal.pkg" + Bitwarden-${{ env.PKG_VERSION }}-universal.pkg.archive" commit: ${{ github.sha }} tag: v${{ env.PKG_VERSION }} name: Version ${{ env.PKG_VERSION }}