Skip to content

Commit bca3e9f

Browse files
committed
Add the release-please as a new workflow
Signed-off-by: DBT pre-commit check
1 parent 9752ec5 commit bca3e9f

File tree

4 files changed

+48
-0
lines changed

4 files changed

+48
-0
lines changed

.github/workflows/automated-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ env:
1212

1313
jobs:
1414
verify-release-version:
15+
# Disable for now, while the release-please action is tested
16+
if: false
1517
runs-on: ubuntu-latest
1618
permissions:
1719
contents: read
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Create Release
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
jobs:
12+
create-release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38
16+
with:
17+
token: ${{ secrets.GITHUB_TOKEN }}
18+
config-file: .release-please-config.json
19+
manifest-file: .release-please-manifest.json
20+
skip-github-release: false
21+
skip-github-pull-request: false

.release-please-config.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"packages": {
4+
".": {
5+
"release-type": "python",
6+
"pull-request-header": ":robot: Next release",
7+
"pull-request-footer": " ",
8+
"extra-files": [
9+
{
10+
"path": "uv.lock",
11+
"type": "toml",
12+
"jsonpath": "$.package[?(@.name.value=='github-standards')].version"
13+
},
14+
{
15+
"path": "pyproject.toml",
16+
"type": "toml",
17+
"jsonpath": "$.project.version"
18+
}
19+
]
20+
}
21+
}
22+
}

.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)