Skip to content

Commit

Permalink
👷 setup release-plz, mise
Browse files Browse the repository at this point in the history
Signed-off-by: David Bernard <david.bernard.31@gmail.com>
  • Loading branch information
davidB committed Feb 24, 2024
1 parent f154eaa commit 4b41f85
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 3 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: release-plz

permissions:
pull-requests: write
contents: write

on:
workflow_dispatch:
push:
branches:
- main

jobs:
release-plz:
name: Release-plz
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
uses: MarcoIeni/release-plz-action@v0.5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
2 changes: 1 addition & 1 deletion .rtx.toml → .mise.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tools]
rust = "1.74"
rust = "1.76"
cargo-make = "0.36"
mdbook = "0.4"
java = "21" # require by jreleaser
Expand Down
4 changes: 2 additions & 2 deletions jreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ assemble:
bigNumberMode: POSIX
distributionType: BINARY
archiveName: "{{distributionName}}_{{projectVersion}}"
attachPlatform: true
attachPlatform: false
fileSets:
- input: "target/{{ osPlatformReplaced }}/release"
output: ""
output: "bin"
includes: ["ffizer{.exe,}"]
# - input: "."
# includes: ["LICENSE"]
Expand Down
34 changes: 34 additions & 0 deletions release-plz.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# [Configuration | Release-plz](https://release-plz.ieni.dev/docs/config)
[workspace]
git_tag_name = "{{version}}"
git_release_name = "{{version}}"

[changelog]
sort_commits = "newest"
commit_preprocessors = [
# { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" }, # remove issue numbers from commits
# { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))"}, # replace issue numbers
]
# regex for parsing and grouping commits
# try to follow [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
commit_parsers = [
{ message = "^(🔒️|🔐)", group = "<!-- 0 -->Security" },
{ body = ".*security", group = "<!-- 0 -->Security" },
{ message = "^(fix|🐛|🚑️|👽️)", group = "<!-- 1 -->Fixed" },
{ message = "^(test|✅)", group = "<!-- 1 -->Fixed", skip = true },
{ message = "^.*: add", group = "<!-- 2 -->Added" },
{ message = "^.*: support", group = "<!-- 2 -->Added" },
{ message = "^(feat|✨|💥)", group = "<!-- 2 -->Added" },
{ message = "^.*: remove", group = "<!-- 3 -->Removed" },
{ message = "^.*: delete", group = "<!-- 3 -->Removed" },
{ message = "^(style|💄)", group = "<!-- 4 -->Changed" },
{ message = "^(doc|✏️|📝)", group = "<!-- 4 -->Changed" },
{ message = "^(perf|⚡️)", group = "<!-- 4 -->Changed" },
{ message = "^(chore|ci|💚|👷|🚧)", group = "<!-- 4 -->Changed", skip = true },
{ message = "^revert", group = "<!-- 4 -->Changed" },
{ message = "^(chore\\(deps\\)|⬇️|⬆️|➕|➖)", group = "<!-- 4 -->Changed" },
{ message = "^(refactor|🎨|🔥|♻️)", group = "<!-- 5 -->Refactor", skip = true },
{ message = "^(chore\\(release\\): prepare for|🔖|🚀)", skip = true },
{ message = "^chore\\(pr\\)", skip = true },
{ message = "^chore\\(pull\\)", skip = true },
]

0 comments on commit 4b41f85

Please sign in to comment.