feat: Add release please to handle releases (#45)
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
This commit is contained in:
parent
04a4323310
commit
5bc057192d
|
|
@ -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" ]
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
{".":"0.0.1"}
|
||||||
|
|
@ -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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue