Skip to content
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

Add goreleaser commands to Makefile and create a Github Action to run goreleaser #5908

Merged
merged 9 commits into from
Jul 30, 2023
Merged

Add goreleaser commands to Makefile and create a Github Action to run goreleaser #5908

merged 9 commits into from
Jul 30, 2023

Conversation

niccoloraspa
Copy link
Member

Tracked in: #5904

What is the purpose of the change

This PR focuses on improving the release process through Goreleaser.

Main changes:

  1. Updated .goreleaser.yml to match the previous release structure.

  2. Added release targets to the Makefile:

    • release: This target performs a release using Goreleaser. It expects the GITHUB_TOKEN as an environment variable. It should never be run manually but always via the GitHub Action.
    • release-dry-run: This target simulates a release without publishing the artifacts. It allows testing the release process without actually creating a new release.
    • release-snapshot: This target creates a snapshot release without validation or publishing. It can be useful for quickly generating snapshots for testing purposes.
  3. Added a release workflow to create a release by running the make release command.

  4. Add a release workflow to create a release running the make release command.

Testing and Verifying

I have used the GitHub action to create a test release in my fork.

You can run:

make release-dry-run

(requires clean git state)

and

make release-snapshot

to test the process.

Documentation and Release Note

  • Does this pull request introduce a new feature or user-facing behavior changes?
  • Changelog entry added to Unreleased section of CHANGELOG.md?

Where is the change documented?

  • Specification (x/{module}/README.md)
  • Osmosis documentation site
  • Code comments?
  • N/A

@niccoloraspa niccoloraspa added V:state/compatible/no_backport State machine compatible PR, depends on prior breaks A:no-changelog labels Jul 28, 2023
@niccoloraspa niccoloraspa requested a review from a team July 28, 2023 15:24
@niccoloraspa niccoloraspa requested a review from a team as a code owner July 28, 2023 15:24
.goreleaser.yaml Outdated Show resolved Hide resolved
@ValarDragon ValarDragon merged commit db45ec4 into osmosis-labs:main Jul 30, 2023
VitalyV1337 pushed a commit to VitalyV1337/osmosis-1 that referenced this pull request Jul 31, 2023
…n goreleaser (osmosis-labs#5908)

* Update goreleaser configuration to match previous releases

* add dist folder to .gitignore

* Add release commands to Makefile

* Add COSMWASM_VERSION to release command

* Remove double \'v\' from version

* Add release github action

* Add tag as release workflow input

* Update goreleaser CI: fix permissions and add docs

* Update github owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:no-changelog T:build T:CI V:state/compatible/no_backport State machine compatible PR, depends on prior breaks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants