Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix chocolatey publishing (2) #700

Merged
merged 1 commit into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,16 @@ jobs:
run: |
mv packages/chocolatey chocolatey

# We need to update the checksum in the 'chocolateyinstall.ps1' file.
# In case of manual deploy from branch, don't forget to update the checksum manually before deploying (get it from the latest release assets).
- name: Update checksum
if: github.event_name == 'release'
run: |
echo "New Hash: ${{ needs.assets.outputs.checksum }}\n"
sed -i "s/checksum = '.*'/checksum = '${{ needs.assets.outputs.checksum }}'/g" chocolatey/tools/chocolateyinstall.ps1
cat chocolatey/tools/chocolateyinstall.ps1

- name: check chocolateyinstall.ps1
run: cat chocolatey/tools/chocolateyinstall.ps1

- name: Choco pack
uses: crazy-max/ghaction-chocolatey@v2
Expand Down
2 changes: 1 addition & 1 deletion packages/chocolatey/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $packageArgs = @{
packageName = $packageName
unzipLocation = $toolsDir
url = 'https://github.com/crowdin/crowdin-cli/releases/latest/download/crowdin-cli.zip'
checksum = '9078bcacbb481eb01fbbfaf6bef87322bb1ca8d6835b543517e913127e0089c4'
checksum = 'fcaf4af368a817f7dccc363791a357526d13740f58eb16945185088918162afa'
checksumType = 'sha256'
}
Install-ChocolateyZipPackage @packageArgs
Expand Down
Loading