ci: add automatic semver

Will need to supply personal access token as repo secret `RELEASE_PLEASE_TOKEN`
This commit is contained in:
pythoninthegrass 2024-02-21 00:45:59 -06:00
parent 6204392c3d
commit 84d147468e
3 changed files with 41 additions and 0 deletions

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

@ -0,0 +1,25 @@
name: Release Please
on:
push:
branches:
- 'main'
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: Release with release-please
uses: google-github-actions/release-please-action@v4
with:
# PAT with write access to the repository
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
# optional. customize path to release-please-config.json
config-file: release-please-config.json
# optional. customize path to .release-please-manifest.json
manifest-file: .release-please-manifest.json

View File

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

View File

@ -0,0 +1,13 @@
{
"packages": {
".": {
"changelog-path": "CHANGELOG.md",
"release-type": "python",
"bump-minor-pre-major": false,
"bump-patch-for-minor-pre-major": false,
"draft": false,
"prerelease": false
}
},
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}