Skip to content

Commit 5bc0571

Browse files
authored
feat: Add release please to handle releases (#45)
Signed-off-by: Andrew Helsby <[email protected]>
1 parent 04a4323 commit 5bc0571

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,26 @@ permissions: # added using https://github.com/step-security/secure-workflows
1414
contents: read
1515

1616
jobs:
17-
build:
17+
release-please:
18+
permissions:
19+
contents: write # for google-github-actions/release-please-action to create release commit
20+
pull-requests: write # for google-github-actions/release-please-action to create release PR
1821
runs-on: ubuntu-latest
22+
23+
steps:
24+
- uses: google-github-actions/release-please-action@v3
25+
id: release
26+
with:
27+
command: manifest
28+
token: ${{secrets.GITHUB_TOKEN}}
29+
default-branch: main
30+
outputs:
31+
release_created: ${{ steps.release.outputs.release_created }}
32+
release_tag_name: ${{ steps.release.outputs.tag_name }}
33+
34+
release:
35+
runs-on: ubuntu-latest
36+
if: ${{ needs.release-please.outputs.release_created }}
1937
strategy:
2038
matrix:
2139
container: [ "python:3.10" ]

.release-please-manifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{".":"0.0.1"}

release-please-config.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"bootstrap-sha": "198336b098f167f858675235214cc907ede10182",
3+
"packages": {
4+
".": {
5+
"release-type": "python",
6+
"monorepo-tags": false,
7+
"include-component-in-tag": false,
8+
"prerelease": false,
9+
"bump-minor-pre-major": true,
10+
"bump-patch-for-minor-pre-major": true,
11+
"extra-files": [
12+
"README.md"
13+
]
14+
}
15+
}
16+
}

0 commit comments

Comments
 (0)