Skip to content

Commit

Permalink
build(ci): update goreleaser configuration for deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
mroth committed Aug 8, 2023
1 parent f8b234f commit 972e601
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git fetch --force --tags
- name: Set up Go
uses: actions/setup-go@v4
with:
Expand All @@ -25,6 +26,6 @@ jobs:
with:
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
6 changes: 2 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ builds:
ldflags:
- -s -w -X main.buildVersion={{.Version}} -X main.buildCommit={{.ShortCommit}} -X main.buildDate={{.Date}}
archives:
- replacements:
darwin: macOS
format_overrides:
- format_overrides:
- goos: windows
format: zip
universal_binaries:
Expand All @@ -29,7 +27,7 @@ snapshot:
name_template: "{{ .Tag }}-next"
brews:
-
tap:
repository:
owner: mroth
name: homebrew-tap
description: "Draft GitHub Release of the next semver in web browser"
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ bin:
mkdir -p bin

snapshot:
goreleaser release --rm-dist --snapshot
goreleaser release --clean --snapshot

package:
# never want to actually publish from local, thats what CI is for
goreleaser release --rm-dist --skip-publish
goreleaser release --clean --skip-publish

clean:
rm -rf bin
Expand Down

0 comments on commit 972e601

Please sign in to comment.