ci: update nightly release workflow with dedicated goreleaser config

This commit is contained in:
j3ssie
2026-01-22 22:07:08 +08:00
parent e28c9dce50
commit ea7668fbb2
2 changed files with 63 additions and 1 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ jobs:
with:
distribution: goreleaser
version: '~> v2'
args: release --clean --release-notes=/tmp/release-notes.md
args: release --clean --release-notes=/tmp/release-notes.md --config test/goreleaser-nightly.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GORELEASER_CURRENT_TAG: v0.0.0-nightly
+62
View File
@@ -0,0 +1,62 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
project_name: osmedeus
before:
hooks:
- go mod tidy
builds:
- id: osmedeus
main: ./cmd/osmedeus
binary: osmedeus
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
- 386
ignore:
- goos: darwin
goarch: 386
ldflags:
- -s -w
- -X main.BuildTime={{.Date}}
- -X main.CommitHash={{.ShortCommit}}
archives:
- id: default
formats:
- tar.gz
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- LICENSE*
- README*
- CHANGELOG*
checksum:
name_template: "checksums.txt"
algorithm: sha256
snapshot:
version_template: "{{ .Tag }}-snapshot"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^chore:"
- Merge pull request
- Merge branch
release:
draft: false
prerelease: true
name_template: "{{.ProjectName}} {{.Tag}}"
make_latest: false