Skip to content

Commit

Permalink
try installing chocolatey manually
Browse files Browse the repository at this point in the history
  • Loading branch information
d-led committed Mar 18, 2023
1 parent d80ae44 commit 9c7f5c7
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c7f5c7

Please sign in to comment.