Skip to content

Commit a325ce0

Browse files
authored
ci: enable release-plz workflow for automation release (#17)
close #15
1 parent 94d653b commit a325ce0

File tree

5 files changed

+51
-25
lines changed

5 files changed

+51
-25
lines changed

.github/workflows/release-plz.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release Plz
2+
3+
permissions: {}
4+
5+
on:
6+
workflow_dispatch:
7+
push:
8+
branches:
9+
- main
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
release-plz:
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: write
20+
pull-requests: write
21+
steps:
22+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
with:
24+
fetch-depth: 0
25+
26+
- name: Run release-plz
27+
id: release-plz
28+
uses: release-plz/action@bbd1afc9813d25602e002b29e96e0aacebab1160 # v0.5.105
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_API_TOKEN }}

.github/workflows/release.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

cliff.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# git-cliff ~ configuration file
2+
# https://git-cliff.org/docs/configuration
3+
4+
[git]
5+
commit_parsers = [
6+
{ message = "^doc", group = "<!-- 3 -->Documentation" },
7+
{ message = "^feat", group = "<!-- 0 -->Features" },
8+
{ message = "^fix", group = "<!-- 1 -->Bug Fixes" },
9+
{ message = "^perf", group = "<!-- 2 -->Performance" },
10+
{ message = "^refactor", group = "<!-- 4 -->Refactor" },
11+
{ message = "^style", group = "<!-- 5 -->Styling" },
12+
{ message = "^test", group = "<!-- 6 -->Testing" },
13+
]
14+
# protect breaking changes from being skipped due to matching a skipping commit_parser
15+
protect_breaking_commits = false

example/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "mimalloc_example"
33
version = "0.1.0"
44
edition = "2024"
5+
publish = false
56

67
[lib]
78
crate-type = ["cdylib", "lib"]

release-plz.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[workspace]
2+
semver_check = true
3+
allow_dirty = true # The "fixtures" is being marked as dirty.
4+
changelog_config = "cliff.toml"

0 commit comments

Comments
 (0)