Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix unreliable asset generation (#1235)
The goal of this change is to fix the symptoms described in the following two issues: - #1234 - #1059 It seems the goreleaser action that was triggered by the 1.2.1 tag thought that the current tag was 1.2.1.SNAPSHOT.0 ``` git state commit=7b06248484ceeaa947e93ca2747eccf336a88ecc branch=HEAD current_tag=v1.2.1-SNAPSHOT.0 previous_tag=v1.2.0 ``` Source: https://github.com/bufbuild/protoc-gen-validate/actions/runs/12916704001/job/36021453853#step:5:21 Basically we ended up with two tags pointing at the same commit and goreleaser picked one: goreleaser/goreleaser#4134 We were unnecessarily increasing the likelihood of that happening by force fetching all tags (which is unnecessary because we will already have the intended tag fetched that triggered the push), so I removed that step here: 87dc0be Additionally, I don't think there is any value in having snapshot tags at all so I deleted the entire version bump workflow here: 79a4a4f Furthermore, we had goreleaser configured to publish drafts, which doesn't make sense if we want to initiate release from the GitHub UI (which I think we do and is similer/easier) so I deleted all the extra config here: 56f26d0 The default config is the right thing for us. Finally there were some settings in setup-go we had configured that have no effect now, so I removed them: 33528d7
- Loading branch information