diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index aed964fb67..612146ca1d 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -15,11 +15,11 @@ jobs: uses: actions/setup-go@v1 with: go-version: '1.18.1' - - name: Run GoReleaser (Skip Publishing) + - name: Run GoReleaser (Snapshot Mode) uses: goreleaser/goreleaser-action@v2 with: distribution: goreleaser version: latest - args: release --skip-publish # Test the build without creating a release + args: release --snapshot # Enable snapshot mode for testing env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 5b64d44d41..00542eff1c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -14,23 +14,12 @@ builds: archives: - format: tar.gz name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}" - files: - - LICENSE - - README.md checksum: - name_template: 'checksums.txt' + name_template: "checksums.txt" snapshot: name_template: "{{ .Tag }}-SNAPSHOT" release: - draft: true # Create releases as drafts to avoid cluttering public release history - prerelease: true # Mark the releases as pre-releases (useful for distinguishing test releases) - -changelog: - sort: asc - filters: - exclude: - - '^docs:' - - '^test:' + prerelease: "true" # Correctly marked as a pre-release