Skip to content

Commit 95a3693

Browse files
committed
Add the release-please as a new workflow
Signed-off-by: DBT pre-commit check
1 parent c096df5 commit 95a3693

File tree

4 files changed

+66
-123
lines changed

4 files changed

+66
-123
lines changed

.github/workflows/automated-release.yml

Lines changed: 0 additions & 123 deletions
This file was deleted.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Create Release
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
create-release:
14+
runs-on: ubuntu-latest
15+
outputs:
16+
tag: ${{ steps.release.outputs.tag_name }}
17+
release_created: ${{ steps.release.outputs.release_created }}
18+
steps:
19+
- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38
20+
id: release
21+
with:
22+
token: ${{ secrets.GITHUB_TOKEN }}
23+
release-type: python
24+
config-file: .release-please-config.json
25+
manifest-file: .release-please-manifest.json
26+
27+
build-and-push-latest-image:
28+
needs: [create-release]
29+
if: ${{ needs.create-release.outputs.release_created }}
30+
permissions:
31+
contents: read
32+
id-token: write
33+
packages: write
34+
attestations: write
35+
uses: ./.github/workflows/build-and-push-to-ghcr.yml
36+
with:
37+
image_tags: latest,${{ needs.create-release.outputs.tag }}
38+
secrets: inherit

.release-please-config.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"release-type": "python",
3+
"include-v-in-tag": true,
4+
"skip-github-release": false,
5+
"skip-github-pull-request": false,
6+
"packages": {
7+
".": {
8+
"release-type": "python",
9+
"pull-request-header": ":robot: Next release",
10+
"pull-request-footer": " ",
11+
"extra-files": [
12+
{
13+
"path": "uv.lock",
14+
"type": "toml",
15+
"jsonpath": "$.package[?(@.name.value=='github-standards')].version"
16+
},
17+
{
18+
"path": "pyproject.toml",
19+
"type": "toml",
20+
"jsonpath": "$.project.version"
21+
}
22+
]
23+
}
24+
}
25+
}

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "v1.3.1"
3+
}

0 commit comments

Comments
 (0)