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

chore: Automate Release Pipeline || Test Token Update #94

Merged
merged 15 commits into from
Oct 31, 2024

Conversation

deepakraog
Copy link
Contributor

Automate Release Pipeline - publishing releases to cargo #93

@deepakraog deepakraog changed the title chore: release pipeline - initial commit chore: Automate Release Pipeline Oct 29, 2024
@deepakraog deepakraog changed the title chore: Automate Release Pipeline chore: [WIP] Automate Release Pipeline Oct 29, 2024
@deepakraog deepakraog changed the title chore: [WIP] Automate Release Pipeline chore: [WIP]Automate Release Pipeline Oct 29, 2024
id: gh_release
uses: softprops/action-gh-release@v1
with:
files: target/release/*.crate # Adjust if necessary
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this line necessary? Olaf and I thought that if it isn't present, the release process will do the right thing.

.github/workflows/tag-pr.yml Outdated Show resolved Hide resolved
@deepakraog deepakraog changed the title chore: [WIP]Automate Release Pipeline chore: Automate Release Pipeline Oct 29, 2024
@deepakraog deepakraog requested a review from tommy October 29, 2024 18:15
@tommy
Copy link
Contributor

tommy commented Oct 29, 2024

I'd be interested for us to try using https://release-plz.ieni.dev/docs

It is a flow similar to Google's release-please, which we've used in other repos for mostly Typescript libraries. The basic flow is:

  • a release PR is automatically opened on the first commit since the previous release. The bot workflow keeps it up-to-date with all the unreleased changes.
  • it contains the Cargo.toml version bump, plus maintains a changelog file.
  • when a developer (with write access) is ready to release, they merge that PR
  • a workflow runs which tags and publishes that commit.

Since all of our repos disallow direct pushes to the main branch, this "release PR" approach is a convenient way to meet that requirement.

(As an added bonus, this project uses cargo semver-checks to look for backwards-incompatible API changes.)

(Github actions instructions here: https://release-plz.ieni.dev/docs/github/quickstart)

@deepakraog deepakraog self-assigned this Oct 30, 2024
@deepakraog deepakraog changed the title chore: Automate Release Pipeline chore: Automate Release Pipeline || Test Token Update Oct 31, 2024
@deepakraog deepakraog merged commit 15d3ec2 into main Oct 31, 2024
5 checks passed
@deepakraog deepakraog deleted the rs/release_pipeline branch October 31, 2024 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants