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 semantic-release #121

Merged
merged 3 commits into from
Nov 19, 2023
Merged

Add semantic-release #121

merged 3 commits into from
Nov 19, 2023

Conversation

hasezoey
Copy link
Collaborator

This PR adds semantic-release for automatic:

  • changelog generation
  • versioning
  • release commit
  • publishing (to github and crates.io)
  • adding comments to PRs & issues

Behavior:

  • only gets run if manually triggered
  • only runs on the main branch
  • requires setup:
    • CARGO_REGISTRY_TOKEN cargo API token
    • consistent commit messages (commits not conforming are ignored)
Example Changelog entry generated for 0.1.0

0.1.0 (hasezoey/dsync@v0.0.16...v0.1.0) (2023-11-10)

Features

Fixes

Style

Refactor

Dependencies


fixes #71

PS: This PR is a draft, because 0.1.0 should likely be released manually (because the changelog already exists) and enforcing commit message style should come first (some commits since 0.0.16 to now do not follow that style and so would get ignored)

@hasezoey hasezoey requested a review from Wulf November 10, 2023 17:10
.github/workflows/CI.yml Outdated Show resolved Hide resolved
@Wulf
Copy link
Owner

Wulf commented Nov 11, 2023

awesome, looks good to me -- thanks for taking the time to set this up

@hasezoey hasezoey marked this pull request as ready for review November 19, 2023 13:16
@hasezoey hasezoey merged commit 07e32f3 into Wulf:main Nov 19, 2023
6 checks passed
@hasezoey hasezoey deleted the semantic-release branch November 19, 2023 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants