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 release workflow #52

Open
jdidion opened this issue Sep 18, 2023 · 2 comments
Open

Add release workflow #52

jdidion opened this issue Sep 18, 2023 · 2 comments
Assignees
Labels
ci Task related to continuous integration

Comments

@jdidion
Copy link
Collaborator

jdidion commented Sep 18, 2023

Add a GitHub actions workflow for releasing that:

  • Publishes to crates.io
  • Builds binaries for the most common platforms [(linux, mac) * (x86, arm)] and attaches them to the GitHub release
@jdidion jdidion added the ci Task related to continuous integration label Sep 18, 2023
@jdidion jdidion self-assigned this Sep 18, 2023
@jdidion
Copy link
Collaborator Author

jdidion commented Sep 19, 2023

If we can agree to use conventional commits in this repo, then I think the best approach is to have two workflows:

  1. Manually triggered release workflow, which uses release-plz to draft the GitHub release (including generating the change log from commit messages and tagging with the appropriate version tag), publish to crates.io, and bump the version.
  2. Workflow triggered by publishing the GitHub release, which uses cargo-dist to build binaries, attach them to the release, and do other stuff like create homebrew formula (and hopefully conda recipe in the future).

@nh13
Copy link
Member

nh13 commented Sep 19, 2023

Agreed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Task related to continuous integration
Projects
None yet
Development

No branches or pull requests

2 participants