feat: Add release please to handle releases (#45)

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
This commit is contained in:
Andrew Helsby 2022-11-15 14:51:20 +04:00 committed by GitHub
parent 04a4323310
commit 5bc057192d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 1 deletions

View File

@ -14,8 +14,26 @@ permissions: # added using https://github.com/step-security/secure-workflows
contents: read contents: read
jobs: jobs:
build: release-please:
permissions:
contents: write # for google-github-actions/release-please-action to create release commit
pull-requests: write # for google-github-actions/release-please-action to create release PR
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
command: manifest
token: ${{secrets.GITHUB_TOKEN}}
default-branch: main
outputs:
release_created: ${{ steps.release.outputs.release_created }}
release_tag_name: ${{ steps.release.outputs.tag_name }}
release:
runs-on: ubuntu-latest
if: ${{ needs.release-please.outputs.release_created }}
strategy: strategy:
matrix: matrix:
container: [ "python:3.10" ] container: [ "python:3.10" ]

View File

@ -0,0 +1 @@
{".":"0.0.1"}

View File

@ -0,0 +1,16 @@
{
"bootstrap-sha": "198336b098f167f858675235214cc907ede10182",
"packages": {
".": {
"release-type": "python",
"monorepo-tags": false,
"include-component-in-tag": false,
"prerelease": false,
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"extra-files": [
"README.md"
]
}
}
}