Skip to content

Commit 87b0e9d

Browse files
committed
ci: add force-tag-creation and publish_release option
1 parent 4725fe8 commit 87b0e9d

2 files changed

Lines changed: 41 additions & 9 deletions

File tree

.github/workflows/manual-sdk-release-artifacts.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ on:
1616
- libs/client-sdk:launchdarkly-cpp-client
1717
- libs/server-sdk:launchdarkly-cpp-server
1818
- libs/server-sdk-redis-source:launchdarkly-cpp-server-redis-source
19+
publish_release:
20+
description: 'Publish (un-draft) the release after all artifacts are uploaded?'
21+
type: boolean
22+
required: false
23+
default: true
1924

2025
name: Publish SDK Artifacts
2126

@@ -76,7 +81,6 @@ jobs:
7681
uses: actions/attest@v4
7782
with:
7883
subject-checksums: checksums.txt
79-
8084
release-sdk-mac-arm64:
8185
needs: split-input
8286
runs-on: macos-15
@@ -108,3 +112,19 @@ jobs:
108112
uses: actions/attest@v4
109113
with:
110114
subject-checksums: checksums.txt
115+
116+
publish-release:
117+
needs: ['release-sdk', 'release-sdk-mac-arm64']
118+
if: ${{ inputs.publish_release }}
119+
runs-on: ubuntu-latest
120+
permissions:
121+
contents: write
122+
steps:
123+
- name: Publish release
124+
env:
125+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
126+
TAG_NAME: ${{ inputs.tag }}
127+
run: >
128+
gh release edit "$TAG_NAME"
129+
--repo ${{ github.repository }}
130+
--draft=false

release-please-config.json

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,42 @@
1010
"tests/client_c_bindings_test.cpp",
1111
"tests/client_test.cpp",
1212
"CMakeLists.txt"
13-
]
13+
],
14+
"force-tag-creation": true
1415
},
1516
"libs/server-sdk": {
1617
"extra-files": [
1718
"include/launchdarkly/server_side/client.hpp",
1819
"tests/server_c_bindings_test.cpp",
1920
"tests/client_test.cpp",
2021
"CMakeLists.txt"
21-
]
22+
],
23+
"force-tag-creation": true
2224
},
2325
"libs/server-sdk-redis-source": {
2426
"extra-files": [
2527
"CMakeLists.txt"
26-
]
28+
],
29+
"force-tag-creation": true
2730
},
2831
"libs/server-sdk-otel": {
2932
"bump-minor-pre-major": true,
3033
"extra-files": [
3134
"CMakeLists.txt"
32-
]
35+
],
36+
"force-tag-creation": true
3337
},
34-
"libs/server-sent-events": {},
35-
"libs/common": {},
36-
"libs/internal": {},
37-
"libs/networking": {}
38+
"libs/server-sent-events": {
39+
"force-tag-creation": true
40+
},
41+
"libs/common": {
42+
"force-tag-creation": true
43+
},
44+
"libs/internal": {
45+
"force-tag-creation": true
46+
},
47+
"libs/networking": {
48+
"force-tag-creation": true
49+
}
3850
}
3951
}

0 commit comments

Comments
 (0)