--skip-publish is deprecated in favor of --skip=publish.
version: 2 needs to be added to .goreleaser.yml file.
How this has been tested ?
Ran curl -sfL https://goreleaser.com/static/run | bash -s -- check with the following output:
Using the OSS distribution...
Downloading GoReleaser v2.1.0...
Verifying checksums...
Could not verify signatures, cosign is not installed.
• checking path=.goreleaser.yml
• 1 configuration file(s) validated
• thanks for using goreleaser!
goreleaser release --snapshot --skip=publish --clean successfully creates desired artifact and is working fine
>> ./dist/octopilot_linux_amd64_v1/octopilot --version
version 0.0.0-SNAPSHOT-9b4fc13, commit 9b4fc133ee05697e1cf0fb278040a080f2d88aa6, built at 2024-07-22T20:00:01Z⏎
The only workflow I could not really test is the release one, however there should be no issue.
Description
This PR upgrades
goreleaser
to v2 and associated GitHub Action to v6.How this has been done ?
Followed migration guide, here are the main highlights:
--rm-dist
is deprecated in favor of--clean
.--skip-publish
is deprecated in favor of--skip=publish
.version: 2
needs to be added to.goreleaser.yml
file.How this has been tested ?
curl -sfL https://goreleaser.com/static/run | bash -s -- check
with the following output:goreleaser release --snapshot --skip=publish --clean
successfully creates desired artifact and is working fineThe only workflow I could not really test is the
release
one, however there should be no issue.