diff --git a/.github/workflows/nightly-release.yaml b/.github/workflows/nightly-release.yaml index 12a303a..49651e2 100644 --- a/.github/workflows/nightly-release.yaml +++ b/.github/workflows/nightly-release.yaml @@ -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 diff --git a/test/goreleaser-nightly.yaml b/test/goreleaser-nightly.yaml new file mode 100644 index 0000000..87b920b --- /dev/null +++ b/test/goreleaser-nightly.yaml @@ -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