File tree Expand file tree Collapse file tree 2 files changed +14
-18
lines changed
Expand file tree Collapse file tree 2 files changed +14
-18
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ permissions:
1111
1212jobs :
1313 goreleaser :
14- runs-on : ubuntu -latest
14+ runs-on : windows -latest
1515 steps :
1616 - name : Checkout
1717 uses : actions/checkout@v4
@@ -23,11 +23,15 @@ jobs:
2323 with :
2424 go-version : 1.19
2525
26+ - name : Verify Chocolatey installation
27+ run : choco --version
28+
2629 - name : Run GoReleaser
2730 uses : goreleaser/goreleaser-action@v5
2831 with :
2932 distribution : goreleaser
3033 version : ${{ env.GITHUB_REF_NAME }}
3134 args : release --clean
3235 env :
33- GITHUB_TOKEN : ${{ secrets.PUBLISHER_TOKEN }}
36+ GITHUB_TOKEN : ${{ secrets.PUBLISHER_TOKEN }}
37+ CHOCOLATEY_API_KEY : ${{ secrets.CHOCOLATEY_API_KEY }}
Original file line number Diff line number Diff line change @@ -25,15 +25,13 @@ builds:
2525 - darwin
2626 - windows
2727 - freebsd
28- goarm :
29- - 6
30- - 7
31- goamd64 :
32- - v2
33- - v3
3428
35- release :
36- prerelease : auto
29+ archives :
30+ - format : tar.gz
31+ # use zip for windows archives
32+ format_overrides :
33+ - goos : windows
34+ format : zip
3735
3836brews :
3937 -
@@ -68,19 +66,13 @@ chocolateys:
6866
6967 - **Security**: how safe and secure is your API? It's akin to having a strong hull to protect against the stormy seas of cyber threats.
7068 release_notes : " https://github.com/treblle/treblle-cli/releases/tag/v{{ .Version }}"
71- api_key : " {{ secrets .CHOCOLATEY_API_KEY }}"
69+ api_key : " {{ .Env .CHOCOLATEY_API_KEY }}"
7270 source_repo : " https://push.chocolatey.org/"
71+ skip_publish : false
7372
7473checksum :
7574 name_template : ' checksums.txt'
7675
77- archives :
78- - format : tar.gz
79- # use zip for windows archives
80- format_overrides :
81- - goos : windows
82- format : zip
83-
8476changelog :
8577 sort : asc
8678 filters :
You can’t perform that action at this time.
0 commit comments