Skip to content

Commit

Permalink
fix: properly set version (#155)
Browse files Browse the repository at this point in the history
We accidentally stopped setting the version so releases... didn't work.
This fixes that.
  • Loading branch information
jaredallard committed Jun 15, 2024
1 parent 273839b commit c348dba
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 90 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ jobs:
run: |-
git tag -a "${{ steps.next_version.outputs.version }}" -m "Release ${{ steps.next_version.outputs.version }}"
- name: Create release artifacts and Github Release
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: v${{ steps.goreleaser.outputs.version }}
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 3 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
run: |
gotestsum -- -coverprofile=cover.out ./...
- name: Upload test coverage
uses: codecov/[email protected]
uses: codecov/codecov-action@v4
continue-on-error: true # Broken for some reason.
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./cover.out
Expand All @@ -53,4 +54,4 @@ jobs:
uses: golangci/golangci-lint-action@v6
with:
version: v${{ steps.golangci_lint.outputs.version }}
args: --timeout=30m
args: --timeout=30m
5 changes: 4 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 2
project_name: minecraft-preempt

before:
hooks:
- go mod tidy
builds:
- &default
id: "{{ .ProjectName }}"
id: minecraft-preempt
main: ./cmd/{{ .ProjectName }}
flags:
- -trimpath
ldflags:
- -s
- -w
- -X github.com/jaredallard/minecraft-preempt/v3/internal/version.Version={{ .Version }}
env:
- CGO_ENABLED=0
goarch:
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ require (
golang.org/x/text v0.15.0 // indirect
golang.org/x/tools v0.14.0 // indirect
google.golang.org/api v0.180.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/genproto v0.0.0-20240401170217-c3f982113cda // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240513163218-0867130af1f8 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240509183442-62759503f434 // indirect
Expand Down
Loading

0 comments on commit c348dba

Please sign in to comment.