Skip to content

Commit

Permalink
Merge pull request #49 from yeganemehr/update-goreleaser-config
Browse files Browse the repository at this point in the history
Update .goreleaser.yml to Fix GitHub Actions Builds
  • Loading branch information
adhocore authored Oct 27, 2024
2 parents 89f74f2 + ae9bd1a commit a2aceba
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@

# yaml-language-server: $schema=https://goreleaser.com/static/schema.json

version: 2

project_name: tasker

release:
Expand All @@ -11,41 +16,37 @@ before:
- go mod tidy

builds:
- <<: &build_defaults
binary: bin/tasker
main: ./cmd/tasker
ldflags:
- -X main.Version={{.Version}}
env:
- CGO_ENABLED=0
id: macOS
- id: macOS
binary: bin/tasker
main: ./cmd/tasker
ldflags:
- -X main.Version={{.Version}}
env:
- CGO_ENABLED=0
goos: [darwin]
goarch: [amd64, arm64]

- <<: *build_defaults
id: linux
- id: linux
main: ./cmd/tasker
goos: [linux]
goarch: [386, arm, amd64, arm64]
goarch: ["386", arm, amd64, arm64]

- <<: *build_defaults
id: windows
- id: windows
main: ./cmd/tasker
goos: [windows]
goarch: [amd64]

archives:
- id: nix
builds: [macOS, linux]
<<: &archive_defaults
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
wrap_in_directory: true
rlcp: true
format: tar.gz
files:
- LICENSE

- id: windows
builds: [windows]
<<: *archive_defaults
wrap_in_directory: false
format: zip
files:
Expand All @@ -56,7 +57,7 @@ checksum:
algorithm: sha256

changelog:
skip: true
disable: true
use: github
sort: desc
filters:
Expand Down

0 comments on commit a2aceba

Please sign in to comment.