feat: add release-please

Make releases with release-please

Signed-off-by: Serge Logvinov <serge.logvinov@sinextra.dev>
This commit is contained in:
Serge Logvinov
2025-11-12 04:49:56 +07:00
committed by Serge
parent 706faa8d08
commit a33ea6ead7
4 changed files with 72 additions and 4 deletions

22
.github/workflows/release-please.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: Release please
on:
workflow_dispatch: {}
push:
branches:
- main
jobs:
release-please:
runs-on: ubuntu-24.04
permissions:
contents: write
pull-requests: write
steps:
- name: Create release PR
id: release
uses: googleapis/release-please-action@v4
with:
config-file: hack/release-please-config.json
manifest-file: hack/release-please-manifest.json

View File

@@ -1,12 +1,20 @@
# Make release
## Change release version
```shell
git checkout -b release-0.0.2
git tag v0.0.2
git commit --allow-empty -m "chore: release 2.0.0" -m "Release-As: 2.0.0"
```
## Update helm chart and documentation
```shell
git branch -D release-please--branches--main
git checkout release-please--branches--main
export `jq -r '"TAG=v"+.[]' hack/release-please-manifest.json`
make helm-unit docs
make release-update
git add .
git commit
git commit -s --amend
```

View File

@@ -0,0 +1,35 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"pull-request-header": ":robot: I have created a release",
"pull-request-title-pattern": "chore: release v${version}",
"group-pull-request-title-pattern": "chore: release v${version}",
"packages": {
".": {
"changelog-path": "CHANGELOG.md",
"release-type": "go",
"skip-github-release": false,
"bump-minor-pre-major": true,
"include-v-in-tag": true,
"draft": false,
"draft-pull-request": true,
"prerelease": false,
"changelog-sections": [
{
"type": "feat",
"section": "Features",
"hidden": false
},
{
"type": "fix",
"section": "Bug Fixes",
"hidden": false
},
{
"type": "*",
"section": "Changelog",
"hidden": false
}
]
}
}
}

View File

@@ -0,0 +1,3 @@
{
".": "0.11.0"
}