Skip to content

Commit

Permalink
ci: automatic release management
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Oct 31, 2023
1 parent 74b863e commit 83f6135
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 3 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Release Please Automatic Semver

on:
push:
branches:
- main

jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
with:
release-type: rust
package-name: tuxedo-rs
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"deps","section":"Dependencies","hidden":false}]'
23 changes: 23 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Contributing guide

Contributions are more than welcome!

## Commit messages / PR titles

This project uses [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)
for PR titles, which become the commit messages after a squash merge.

The most important prefixes you should have in mind are:

- `feat:` which represents a new feature, and correlates to a [SemVer](https://semver.org/)
minor.
- `fix:` which represents bug fixes, and correlates to a SemVer patch.
- `deps:` which represents dependency updates, and correlates to a SemVer patch.
- `feat!:`, or `fix!:`, `refactor!:`, etc., which represent a breaking change
(indicated by the !).
- `docs:` which represents documentation, and does not correlate to a version bump.
- `chore:` which represents miscellaneous changes,
and does not correlate to a version bump.

See also the [`release-please`](./.github/workflows/release-please.yml)
for the mapping of commit prefixes to changelog entry.
26 changes: 26 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"plugins": ["cargo-workspace"],
"packages": {
"tuxedo_ioctl": {
"release-type": "rust"
},
"tuxedo_sysfs": {
"release-type": "rust"
},
"tailord": {
"release-type": "rust"
},
"tailor_api": {
"release-type": "rust"
},
"tailor_client": {
"release-type": "rust"
},
"tailor_cli": {
"release-type": "rust"
},
"tailor_gui": {
"release-type": "rust"
}
}
}
2 changes: 1 addition & 1 deletion tailor_client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "tailor_client"
authors = ["Aaron Erhardt <[email protected]>"]
version = "0.2.1"
version = "0.2.3"
edition = "2021"
license = "GPL-2.0+"
description = "Client library for tailord (part of tuxedo-rs)"
Expand Down
4 changes: 2 additions & 2 deletions tuxedo_sysfs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "tuxedo_sysfs"
authors = ["Aaron Erhardt <[email protected]>"]
version = "0.2.0"
version = "0.2.3"
edition = "2021"
license = "GPL-2.0+"
description = "Tuxedo sysfs interface (part of tuxedo-rs)"
Expand All @@ -17,4 +17,4 @@ tailor_api = { version = "0.2", path = "../tailor_api" }

[dev-dependencies]
sudo = "0.6"
tracing-subscriber = "0.3.16"
tracing-subscriber = "0.3.16"

0 comments on commit 83f6135

Please sign in to comment.