Skip to content

Commit

Permalink
ci: Testing GoReleaser configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyzyx committed Apr 30, 2024
1 parent c1a02ef commit a518dc0
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ report_sizes: true
# https://goreleaser.com/customization/builds/
builds:
- id: linux
binary: {{ .ProjectName }}
binary: { { .ProjectName } }
skip: false
mod_timestamp: '{{ .CommitTimestamp }}'
env:
Expand All @@ -31,7 +31,7 @@ builds:
- arm64

- id: windows
binary: {{ .ProjectName }}
binary: { { .ProjectName } }
skip: false
mod_timestamp: '{{ .CommitTimestamp }}'
env:
Expand All @@ -47,7 +47,7 @@ builds:
- arm64

- id: macos
binary: {{ .ProjectName }}
binary: { { .ProjectName } }
skip: false
mod_timestamp: '{{ .CommitTimestamp }}'
env:
Expand All @@ -67,14 +67,9 @@ universal_binaries:
- id: macos-universal
ids:
- macos
name_template: "{{ .ProjectName }}"
name_template: '{{ .ProjectName }}'
replace: true

# https://goreleaser.com/customization/archive/
archives:
- format: zip
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'

# https://goreleaser.com/customization/checksum/
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
Expand All @@ -86,7 +81,7 @@ signs:
ids:
- linux-archive
- windows-archive
signature: "${artifact}.sig"
signature: '${artifact}.sig'
artifacts: all
args:
- --batch
Expand All @@ -101,7 +96,7 @@ signs:
release:
github:
owner: northwood-labs
name: {{ .ProjectName }}
name: { { .ProjectName } }
draft: true
replace_existing_draft: true
replace_existing_artifacts: true
Expand All @@ -124,7 +119,7 @@ source:

# https://goreleaser.com/customization/archive/
archives:
- id: "linux-archive"
- id: 'linux-archive'
rlcp: true
builds:
- linux
Expand All @@ -133,9 +128,11 @@ archives:
format: zip
files:
- none*
name_template: '{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}32v{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
name_template:
'{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}32v{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64
}}{{ end }}'

- id: "windows-archive"
- id: 'windows-archive'
rlcp: true
builds:
- windows
Expand All @@ -144,9 +141,11 @@ archives:
format: zip
files:
- none*
name_template: '{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}32v{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
name_template:
'{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}32v{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64
}}{{ end }}'

- id: "macos-archive"
- id: 'macos-archive'
rlcp: true
builds:
- macos-universal
Expand All @@ -155,7 +154,7 @@ archives:
format: zip
files:
- none*
name_template: "{{ .ProjectName }}-{{ .Os }}-universal"
name_template: '{{ .ProjectName }}-{{ .Os }}-universal'

# https://goreleaser.com/customization/nfpm/
nfpms:
Expand All @@ -167,7 +166,7 @@ nfpms:
homepage: 'https://github.com/northwood-labs/{{ .ProjectName }}'
description: '{{.Var.Description}}'
maintainer: '{{ .Var.MaintainerName }} <{{ .Var.MaintainerEmail }}>'
file_name_template: "{{ .ConventionalFileName }}"
file_name_template: '{{ .ConventionalFileName }}'
umask: 0o002
formats:
- rpm
Expand All @@ -185,7 +184,7 @@ nfpms:
homepage: 'https://github.com/northwood-labs/{{ .ProjectName }}'
description: '{{.Var.Description}}'
maintainer: '{{ .Var.MaintainerName }} <{{ .Var.MaintainerEmail }}>'
file_name_template: "{{ .ConventionalFileName }}"
file_name_template: '{{ .ConventionalFileName }}'
umask: 0o002
formats:
- deb
Expand All @@ -201,7 +200,7 @@ nfpms:
homepage: 'https://github.com/northwood-labs/{{ .ProjectName }}'
description: '{{.Var.Description}}'
maintainer: '{{ .Var.MaintainerName }} <{{ .Var.MaintainerEmail }}>'
file_name_template: "{{ .ConventionalFileName }}"
file_name_template: '{{ .ConventionalFileName }}'
umask: 0o002
formats:
- apk
Expand All @@ -216,12 +215,12 @@ notarize:
ids:
- macos-archive
sign:
certificate: "{{ .Env.MACOS_SIGN_P12 }}"
password: "{{ .Env.MACOS_SIGN_PASSWORD }}"
certificate: '{{ .Env.MACOS_SIGN_P12 }}'
password: '{{ .Env.MACOS_SIGN_PASSWORD }}'
notarize:
issuer_id: "{{ .Env.MACOS_NOTARY_ISSUER_ID }}"
key_id: "{{ .Env.MACOS_NOTARY_KEY_ID }}"
key: "{{ .Env.MACOS_NOTARY_KEY }}"
issuer_id: '{{ .Env.MACOS_NOTARY_ISSUER_ID }}'
key_id: '{{ .Env.MACOS_NOTARY_KEY_ID }}'
key: '{{ .Env.MACOS_NOTARY_KEY }}'
wait: true
timeout: 30m

Expand All @@ -232,20 +231,21 @@ brews:
# - myproject@{{ .Version }}
# - myproject@{{ .Major }}
ids:
- macos-archive
- linux-archive
url_template: "https://github.com/northwood-labs/{{ .ProjectName }}/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
- macos-archive
- linux-archive
url_template:
'https://github.com/northwood-labs/{{ .ProjectName }}/releases/download/{{ .Tag }}/{{ .ArtifactName }}'
url_headers:
- "Accept: application/octet-stream"
- 'Accept: application/octet-stream'
- 'Authorization: Bearer #{ENV["HOMEBREW_GITHUB_API_TOKEN"]}'
download_strategy: CurlDownloadStrategy
commit_author:
name: '{{ .Var.MaintainerName }}'
email: '{{ .Var.MaintainerEmail }}'
commit_msg_template: "automation: Brew formula update for {{ .ProjectName }} version {{ .Tag }}."
commit_msg_template: 'automation: Brew formula update for {{ .ProjectName }} version {{ .Tag }}.'
directory: Formula
caveats: "This is a macOS Universal Binary that should work on Intel and Apple Silicon chips."
homepage: "https://github.com/northwood-labs/{{ .ProjectName }}"
caveats: 'This is a macOS Universal Binary that should work on Intel and Apple Silicon chips.'
homepage: 'https://github.com/northwood-labs/{{ .ProjectName }}'
description: '{{ .Var.Description }}'
license: Apache-2.0
skip_upload: false
Expand All @@ -255,7 +255,7 @@ brews:
owner: northwood-labs
name: '{{ .ProjectName }}'
branch: main
token: "{{ .Env.GH_PUBLIC_TOKEN }}"
token_type: "github"
token: '{{ .Env.GH_PUBLIC_TOKEN }}'
token_type: 'github'
git:
url: 'https://{{ .Env.GH_PUBLIC_TOKEN }}@github.com/northwood-labs/homebrew-tap.git'

0 comments on commit a518dc0

Please sign in to comment.