Skip to content

Commit

Permalink
Trying to add a go-releaser whatever that is
Browse files Browse the repository at this point in the history
  • Loading branch information
tjayrush committed Dec 16, 2024
1 parent 7dff36a commit d5eb2b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
15 changes: 2 additions & 13 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d5eb2b1

Please sign in to comment.