1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-02 16:43:19 +00:00

moving the choco update script into the release pipeline and the build pipeline

This commit is contained in:
Joseph Flinn
2021-01-22 02:46:11 +00:00
parent de7ba57a10
commit ef7b1d9a19
2 changed files with 28 additions and 1 deletions

View File

@@ -259,7 +259,16 @@ jobs:
- name: Deploy to Chocolatey
shell: pwsh
run: ./scripts/choco-update.ps1 -version $env:PACKAGE_VERSION
run: |
Copy-Item -Path ./stores/chocolatey -Destination ./dist/chocolatey -Recurse
Copy-Item -Path ./dist/Bitwarden-Installer-${{ env.PACKAGE_VERSION }}.exe -Destination ./dist/chocolatey
$checksum = checksum -t sha256 ./dist/chocoloatey/Bitwarden-Installer-${{ env.PACKAGE_VERSION }}.exe
$chocoInstall = "./dist/chocolatey/tools/chocolateyinstall.ps1"
(Get-Content $chocoInstall).replace('__version__', ${{ env.PACKAGE_VERSION }}).replace('__checksum__', $checksum) | Set-Content $chocoInstall
choco pack ./dist/chocolatey/bitwarden.nuspec --version ${{ env.PACKAGE_VERSION }} --out ./dist/chocolately
cd ./dist/chocolately
#choco push
- name: Upload Chocolatey nupkg release asset
id: upload-macos-checksum