From ebb4a4619833a1a62564c818313049707abf24e2 Mon Sep 17 00:00:00 2001 From: FingerLeader Date: Mon, 15 Jul 2024 21:28:58 +0800 Subject: [PATCH] disable release when version is nightly Signed-off-by: FingerLeader --- .github/workflows/release.yml | 4 ++-- .goreleaser.yaml | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7500b1ce..42eac559 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,8 +33,8 @@ jobs: - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 with: - version: v1.12.3 - args: release ${{ contains(github.ref, 'nightly') && '--skip==publish' || '--release-notes=.CHANGELOG.md' }} + version: v2.1.0 + args: release ${{ contains(github.ref, 'nightly') && '--snapshot' || '--release-notes=.CHANGELOG.md' }} env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} GORELEASER_CURRENT_TAG: ${{steps.changelog.outputs.TAG_NAME}} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 3ae6877e..2bb205eb 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -28,13 +28,13 @@ builds: archives: - id: nix builds: [linux, macos] - <<: &archive_defaults - name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" - wrap_in_directory: false + name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" + wrap_in_directory: false format: tar.gz - id: windows builds: [windows] - <<: *archive_defaults + name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" + wrap_in_directory: false format: zip nfpms: @@ -57,5 +57,5 @@ nfpms: checksum: name_template: 'checksums.txt' snapshot: - name_template: "{{ incpatch .Version }}-next" + name_template: "{{ .Version }}"