From de7ba57a1011b37d8b38b57745de40a15ae2b9c7 Mon Sep 17 00:00:00 2001 From: Joseph Flinn Date: Fri, 22 Jan 2021 00:13:04 +0000 Subject: [PATCH] fixing the chocolatey issue --- .github/workflows/release.yml | 4 ++++ scripts/choco-update.ps1 | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 877a943c8f..db38a1107b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -257,6 +257,10 @@ jobs: Copy-Item "./dist/Bitwarden-${{ env.PACKAGE_VERSION }}-x64.appx" ` -Destination "./dist/Bitwarden-${{ env.PACKAGE_VERSION }}-x64-store.appx" + - name: Deploy to Chocolatey + shell: pwsh + run: ./scripts/choco-update.ps1 -version $env:PACKAGE_VERSION + - name: Upload Chocolatey nupkg release asset id: upload-macos-checksum uses: actions/upload-release-asset@v1 diff --git a/scripts/choco-update.ps1 b/scripts/choco-update.ps1 index 72677357aa..4e2496581e 100644 --- a/scripts/choco-update.ps1 +++ b/scripts/choco-update.ps1 @@ -30,5 +30,5 @@ $chocoInstall = $distChocoDir + "\tools\chocolateyinstall.ps1"; (Get-Content $chocoInstall).replace('__version__', $version).replace('__checksum__', $checksum) | Set-Content $chocoInstall choco pack $nuspec --version $version --out $distChocoDir cd $distChocoDir -choco push +#choco push cd $rootDir