Skip to content

chore(gh): update to goreleaser v2 #1598

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tenthirtyam
Copy link
Collaborator

@tenthirtyam tenthirtyam commented Apr 8, 2025

Description

  • Updates the GoReleaser configuration to v2.
  • Uses the recommended order.
  • Add the terraform-registry-manifest.json for the release workflow. Reference.

Before:

terraform-provider-nsxt on  chore(gh)/update-to-goreleaser-v2 via 🐹  
➜ goreleaser check
  • only  version: 2  configuration files are supported, yours is  version: 0 , please update your configuration
  • checking                                 path=.goreleaser.yml
  • DEPRECATED:  archives.format  should not be used anymore, check https://goreleaser.com/deprecations#archivesformat for more info
  • .goreleaser.yml                                  error=configuration is valid, but uses deprecated properties
  ⨯ command failed   

After:

terraform-provider-nsxt on  chore(gh)/update-to-goreleaser-v2 via 🐹  
➜ goreleaser check
  • checking                                 path=.goreleaser.yml
  • 1 configuration file(s) validated
  • thanks for using GoReleaser!

@tenthirtyam tenthirtyam added chore Chore github-actions GitHub Actions labels Apr 8, 2025
@tenthirtyam tenthirtyam self-assigned this Apr 8, 2025
@ksamoray
Copy link
Collaborator

ksamoray commented Apr 9, 2025

Do we have some way to test this?

@tenthirtyam
Copy link
Collaborator Author

Do we have some way to test this?

Yes,

To validate the configuration, run: goreleaser check.

To test a build, without releasing, run goreleaser build.

To perform a dry run, run goreleaser release --snapshot --clean

  • The --snapshot flag tells GoReleaser to create a release based on the current state without a tag needed.
  • Perform all the build, package, and artifact generation steps but will skip all publishing and announcing steps.
  • The generated artifacts will be placed in the dist directory.
  • Including the --clean flag will remove the dist directory before running the command, ensuring you only see the artifacts from the current test run.

- Updates the GoReleaser configuration to v2.
- Uses the recommended order.
- Add the `terraform-registry-manifest.json` for the release workflow.

Signed-off-by: Ryan Johnson <[email protected]>
@tenthirtyam tenthirtyam force-pushed the chore(gh)/update-to-goreleaser-v2 branch from ac1a04f to b3d00c1 Compare April 9, 2025 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Chore github-actions GitHub Actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants