Skip to content

Commit

Permalink
feat: Add release please to handle releases (#45)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
  • Loading branch information
ajhelsby authored Nov 15, 2022
1 parent 04a4323 commit 5bc0571
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,26 @@ permissions: # added using https://github.com/step-security/secure-workflows
contents: read

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

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:
matrix:
container: [ "python:3.10" ]
Expand Down
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{".":"0.0.1"}
16 changes: 16 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
}

0 comments on commit 5bc0571

Please sign in to comment.