Skip to content

Commit

Permalink
upload zip and tar.gz archives for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoisaiah committed Oct 19, 2023
1 parent e2bea02 commit df2c548
Showing 1 changed file with 28 additions and 9 deletions.
37 changes: 28 additions & 9 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,43 @@ before:
- go mod download

builds:
- id: binary_archives
- id: windows
env:
- CGO_ENABLED=1
goos:
- linux
- windows
# darwin omitted due to Cgo cross-compilation failure
# Binary to be uploaded separately. See .github/workflows/darwin.yml
goarch:
- amd64
- arm64
main: ./cmd/focus

- id: linux
env:
- CGO_ENABLED=1
goos:
- linux
goarch:
- amd64
main: ./cmd/focus

archives:
- files:
- id: windows-only
builds:
- windows
files:
- LICENCE
- README.md
- CHANGELOG.md
format: zip

- id: default
builds:
- windows
- linux
files:
- LICENCE
- README.md
- CHANGELOG.md
format_overrides:
- goos: windows
format: zip

checksum:
name_template: 'checksums.txt'
Expand Down Expand Up @@ -103,7 +120,9 @@ winget:
branch: master

scoops:
- url_template: 'https://github.com/ayoisaiah/focus/releases/download/{{ .Tag }}/{{ .ArtifactName }}'
- ids:
- windows-only
url_template: 'https://github.com/ayoisaiah/focus/releases/download/{{ .Tag }}/{{ .ArtifactName }}'
repository:
owner: '{{ .Env.REPO_OWNER }}'
name: scoop-bucket
Expand Down

0 comments on commit df2c548

Please sign in to comment.