ci: fixed chocolatey workflow and hombrew

This commit is contained in:
objz committed 2026-04-27 12:51:29 +02:00
1 parent 3d8b3deb74
commit 495a4b3fa1
2 files changed
+43 -9

No files matched your search

+17 -3
View File
@@ -57,6 +57,20 @@ jobs:
args: pack ${{ steps.package.outputs.package_dir }}/mcl-launcher.nuspec --version ${{ steps.package.outputs.version }} --output-directory target/chocolatey/out
- name: push Chocolatey package
uses: crazy-max/ghaction-chocolatey@v4
with:
args: push target/chocolatey/out/mcl-launcher.${{ steps.package.outputs.version }}.nupkg --source "https://push.chocolatey.org/" --api-key "${{ secrets.CHOCOLATEY_API_KEY }}" --timeout 2700
shell: bash
run: |
package="target/chocolatey/out/mcl-launcher.${{ steps.package.outputs.version }}.nupkg"
for attempt in 1 2 3; do
if docker run --rm --workdir /wksp --volume "$PWD:/wksp" ghcr.io/crazy-max/chocolatey push "$package" --source "https://push.chocolatey.org/" --api-key "$CHOCOLATEY_API_KEY" --timeout 2700; then
exit 0
fi
if [ "$attempt" -eq 3 ]; then
break
fi
sleep $((attempt * 30))
done
exit 1