diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 9273262..03e5259 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -22,12 +22,15 @@ jobs: - uses: actions/setup-go@v4 with: go-version: stable - - - name: Choco help - # install choco - uses: crazy-max/ghaction-chocolatey@v2 - with: - args: -h + - name: install choco + run: | + mkdir -p /opt/chocolatey + wget -q -O - "https://github.com/chocolatey/choco/releases/download/${CHOCOLATEY_VERSION}/chocolatey.v${CHOCOLATEY_VERSION}.tar.gz" | tar -xz -C "/opt/chocolatey" + echo '#!/bin/bash' >> /usr/local/bin/choco + echo 'mono /opt/chocolatey/choco.exe $@' >> /usr/local/bin/choco + chmod +x /usr/local/bin/choco + env: + CHOCOLATEY_VERSION: 1.3.1 - uses: goreleaser/goreleaser-action@v4 with: distribution: goreleaser