Skip to content

Commit 69d66dc

Browse files
committed
chore(ci): DSPX-850 - Add workflows to support LTS releases
1 parent ba11d49 commit 69d66dc

File tree

3 files changed

+22
-14
lines changed

3 files changed

+22
-14
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- "release/*"
78
release:
89
types: [created]
910

@@ -13,19 +14,10 @@ permissions:
1314

1415
jobs:
1516
release-please:
16-
runs-on: ubuntu-latest
17-
steps:
18-
- name: Generate a token
19-
id: generate_token
20-
uses: actions/create-github-app-token@f2acddfb5195534d487896a656232b016a682f3c # v1.9.0
21-
with:
22-
app-id: "${{ secrets.APP_ID }}"
23-
private-key: "${{ secrets.AUTOMATION_KEY }}"
24-
- uses: googleapis/release-please-action@a02a34c4d625f9be7cb89156071d8567266a2445 # v4.2.0
25-
with:
26-
token: "${{ steps.generate_token.outputs.token }}"
27-
config-file: release-please.json
28-
manifest-file: .release-please-manifest.json
17+
permissions:
18+
contents: write
19+
pull-requests: write
20+
uses: opentdf/platform/reusable_release-please.yaml@main
2921
release:
3022
runs-on: ubuntu-latest
3123
steps:

release-please_main-branch.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"release-type": "maven",
4+
"bump-minor-pre-major": true,
5+
"separate-pull-requests": false,
6+
"include-component-in-tag": false,
7+
"group-pull-request-title-pattern": "chore(${branch}): release ${version}",
8+
"packages": {
9+
".": {}
10+
},
11+
"extra-files": [
12+
{
13+
"type": "generic",
14+
"path": "cmdline/src/main/java/io/opentdf/platform/Command.java"
15+
}
16+
]
17+
}

release-please.json renamed to release-please_release-branches.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
33
"release-type": "maven",
4-
"bump-minor-pre-major": true,
54
"bump-patch-for-minor-pre-major": true,
65
"separate-pull-requests": false,
76
"include-component-in-tag": false,

0 commit comments

Comments
 (0)