Skip to content

Commit 01752f2

Browse files
authored
Merge pull request #65 from hathora/jc/fixJavaPublish
fix maven publish for Java SDK
2 parents 9a89e20 + 7eec95f commit 01752f2

File tree

3 files changed

+104
-100
lines changed

3 files changed

+104
-100
lines changed

.github/workflows/sdk_generation.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,33 @@ permissions:
44
contents: write
55
pull-requests: write
66
statuses: write
7+
id-token: write
78
"on":
89
workflow_dispatch:
910
inputs:
1011
force:
1112
description: Force generation of SDKs
1213
type: boolean
1314
default: false
14-
push_code_samples_only:
15-
description: Force push only code samples from SDK generation
16-
type: boolean
17-
default: false
1815
set_version:
1916
description: optionally set a specific SDK version
2017
type: string
2118
schedule:
2219
- cron: 0 0 * * *
20+
pull_request:
21+
types:
22+
- labeled
23+
- unlabeled
2324
jobs:
2425
generate:
2526
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
2627
with:
2728
force: ${{ github.event.inputs.force }}
28-
push_code_samples_only: ${{ fromJSON(github.event.inputs.push_code_samples_only != '' && github.event.inputs.push_code_samples_only || 'false') }}
29+
mode: pr
2930
set_version: ${{ github.event.inputs.set_version }}
30-
speakeasy_version: latest
3131
secrets:
3232
github_access_token: ${{ secrets.GITHUB_TOKEN }}
33+
heuk3iag: ${{ secrets.OSSRH_PASSWORD }}
3334
java_gpg_passphrase: ${{ secrets.JAVA_GPG_PASSPHRASE }}
3435
java_gpg_secret_key: ${{ secrets.JAVA_GPG_SECRET_KEY }}
3536
ossrh_password: ${{ secrets.OSSRH_PASSWORD }}

.github/workflows/sdk_publish.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,22 @@ permissions:
44
contents: write
55
pull-requests: write
66
statuses: write
7+
id-token: write
78
"on":
89
push:
910
branches:
1011
- main
1112
paths:
12-
- RELEASES.md
13-
- "*/RELEASES.md"
13+
- .speakeasy/gen.lock
14+
workflow_dispatch: {}
1415
jobs:
1516
publish:
1617
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
18+
with:
19+
target: hathora-java
1720
secrets:
1821
github_access_token: ${{ secrets.GITHUB_TOKEN }}
22+
heuk3iag: ${{ secrets.OSSRH_PASSWORD }}
1923
java_gpg_passphrase: ${{ secrets.JAVA_GPG_PASSPHRASE }}
2024
java_gpg_secret_key: ${{ secrets.JAVA_GPG_SECRET_KEY }}
2125
ossrh_password: ${{ secrets.OSSRH_PASSWORD }}

gradlew.bat

Lines changed: 91 additions & 92 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)