Skip to content

Commit

Permalink
fix: updating build script and workflows (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelwhix authored Sep 26, 2024
1 parent 23bc1b0 commit 31ef8b1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 18 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:

jobs:
goreleaser:
runs-on: ubuntu-latest
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -23,11 +23,15 @@ jobs:
with:
go-version: 1.19

- name: Verify Chocolatey installation
run: choco --version

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: ${{ env.GITHUB_REF_NAME }}
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}
CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }}
24 changes: 8 additions & 16 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,13 @@ builds:
- darwin
- windows
- freebsd
goarm:
- 6
- 7
goamd64:
- v2
- v3

release:
prerelease: auto
archives:
- format: tar.gz
# use zip for windows archives
format_overrides:
- goos: windows
format: zip

brews:
-
Expand Down Expand Up @@ -68,19 +66,13 @@ chocolateys:
- **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.
release_notes: "https://github.com/treblle/treblle-cli/releases/tag/v{{ .Version }}"
api_key: "{{ secrets.CHOCOLATEY_API_KEY }}"
api_key: "{{ .Env.CHOCOLATEY_API_KEY }}"
source_repo: "https://push.chocolatey.org/"
skip_publish: false

checksum:
name_template: 'checksums.txt'

archives:
- format: tar.gz
# use zip for windows archives
format_overrides:
- goos: windows
format: zip

changelog:
sort: asc
filters:
Expand Down

0 comments on commit 31ef8b1

Please sign in to comment.