Skip to content

Commit 31ef8b1

Browse files
authored
fix: updating build script and workflows (#21)
1 parent 23bc1b0 commit 31ef8b1

File tree

2 files changed

+14
-18
lines changed

2 files changed

+14
-18
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111

1212
jobs:
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 }}

.goreleaser.yaml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff 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

3836
brews:
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

7473
checksum:
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-
8476
changelog:
8577
sort: asc
8678
filters:

0 commit comments

Comments
 (0)