parent
a7e6ca4172
commit
e72d07b4fe
3 changed files with 66 additions and 0 deletions
29
.forgejo/workflows/push-main.yml
Normal file
29
.forgejo/workflows/push-main.yml
Normal file
|
@ -0,0 +1,29 @@
|
|||
name: Release Please
|
||||
|
||||
permissions:
|
||||
pull-requests: write
|
||||
contents: write
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
release-plz:
|
||||
name: Release-plz
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Run release-plz release-pr
|
||||
uses: https://git.kemitix.net/kemitix/rust@v2.1.0
|
||||
with:
|
||||
args: release-plz release-pr --backend gitea --git-token ${{ secrets.FORGEJO_TOKEN }}
|
||||
env:
|
||||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
|
@ -2,6 +2,7 @@
|
|||
name = "forgejo-todo-checker"
|
||||
version = "1.0.0"
|
||||
edition = "2021"
|
||||
publish = false # NOTE: Not a CLI tool or a library, so don't release to crates.io
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0"
|
||||
|
|
36
release-plz.toml
Normal file
36
release-plz.toml
Normal file
|
@ -0,0 +1,36 @@
|
|||
[workspace]
|
||||
# Disable git releases for all packages by default
|
||||
git_release_enable = false
|
||||
|
||||
# Disable git tags for all packages by default
|
||||
git_tag_enable = false
|
||||
|
||||
# set the path of all the crates to the changelog to the root of the repository
|
||||
changelog_path = "./CHANGELOG.md"
|
||||
|
||||
[[package]]
|
||||
name = "forgejo-todo-checker"
|
||||
# (Optional) Customize the git tag name to remove the `my_main_package` prefix.
|
||||
git_tag_name = "v{{ version }}"
|
||||
|
||||
# Enable git tags for this package
|
||||
git_tag_enable = true
|
||||
|
||||
# Enable git releases for this package
|
||||
git_release_enable = true
|
||||
|
||||
[changelog]
|
||||
body = """
|
||||
|
||||
## [{{ version | trim_start_matches(pat="v") }}]{%- if release_link -%}({{ release_link }}){% endif %} - {{ timestamp | date(format="%Y-%m-%d") }}
|
||||
{% for group, commits in commits | group_by(attribute="group") %}
|
||||
### {{ group | upper_first }}
|
||||
{% for commit in commits %}
|
||||
{%- if commit.scope -%}
|
||||
- *({{commit.scope}})* {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message }}{%- if commit.links %} ({% for link in commit.links %}[{{link.text}}]({{link.href}}) {% endfor -%}){% endif %}
|
||||
{% else -%}
|
||||
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message }}
|
||||
{% endif -%}
|
||||
{% endfor -%}
|
||||
{% endfor -%}
|
||||
"""
|
Loading…
Reference in a new issue