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

Integrate release-plz to automate release & crate publish #224

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release

permissions:
pull-requests: write
contents: write

on:
push:
branches:
- master

jobs:
release-plz:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ github.token }}
fetch-depth: 0

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Run release-plz
uses: MarcoIeni/release-plz-action@v0.5.34
env:
GITHUB_TOKEN: ${{ github.token }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_TOKEN }}
33 changes: 33 additions & 0 deletions release-plz.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[workspace]
allow_dirty = false
changelog_update = true
dependencies_update = true
git_release_enable = false
pr_labels = ["release"]
publish_allow_dirty = false
semver_check = true
publish_timeout = "10m"

[[package]]
name = "monoio"
changelog_include = ["monoio-macros"]
changelog_path = "CHANGELOG.md"
changelog_update = true
git_release_enable = true
publish = true

[[package]]
name = "monoio-macros"
changelog_include = []
changelog_path = "monoio-macros/CHANGELOG.md"
changelog_update = true
git_release_enable = true
publish = true

[[package]]
name = "monoio-compat"
changelog_include = []
changelog_path = "monoio-compat/CHANGELOG.md"
changelog_update = true
git_release_enable = true
publish = true