Skip to content

Commit

Permalink
Merge pull request #85 from speakeasy-api/chase/better-java-pub
Browse files Browse the repository at this point in the history
chore: better java publishing step names
  • Loading branch information
chase-crumbaugh authored Feb 15, 2024
2 parents cc1881c + 3db35e2 commit f3a38f7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/sdk-generation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ on:
required: false
type: string
use_sonatype_central:
description: "When publishing the Java SDK, use to the Sonatype central portal"
description: "When publishing the Java SDK, use the Sonatype central portal"
default: "false"
required: false
type: string
Expand Down Expand Up @@ -1061,16 +1061,18 @@ jobs:
java-version: "11"
distribution: "corretto"
cache: "gradle"
- run: |-
- name: Publish to Sonatype (legacy)
run: |-
pwd
./gradlew publish --no-daemon
if: ${{ inputs.use_sonatype_central == 'false' }}
if: ${{ inputs.use_sonatype_central != 'true' }}
env:
MAVEN_USERNAME: ${{ secrets.ossrh_username }}
MAVEN_PASSWORD: ${{ secrets.ossrh_password }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.java_gpg_secret_key }}
ORG_GRADLE_PROJECT_signingPassphrase: ${{ secrets.java_gpg_passphrase }}
- run: |-
- name: Publish to Sonatype Central
run: |-
pwd
./gradlew build sonatypeCentralUpload --no-daemon
if: ${{ inputs.use_sonatype_central == 'true' }}
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/sdk-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
required: false
type: string
use_sonatype_central:
description: "When publishing the Java SDK, use to the Sonatype central portal"
description: "When publishing the Java SDK, use the Sonatype central portal"
default: "false"
required: false
type: string
Expand Down Expand Up @@ -239,18 +239,20 @@ jobs:
java-version: "11"
distribution: "corretto"
cache: "gradle"
- run: |-
- name: Publish to Sonatype (legacy)
run: |-
pwd
./gradlew publish --no-daemon
if: ${{ inputs.use_sonatype_central == 'false' }}
if: ${{ inputs.use_sonatype_central != 'true' }}
env:
MAVEN_USERNAME: ${{ secrets.ossrh_username }}
MAVEN_PASSWORD: ${{ secrets.ossrh_password }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.java_gpg_secret_key }}
ORG_GRADLE_PROJECT_signingPassphrase: ${{ secrets.java_gpg_passphrase }}
- run: |-
- name: Publish to Sonatype Central
run: |-
pwd
./gradlew sonatypeCentralUpload --no-daemon
./gradlew build sonatypeCentralUpload --no-daemon
if: ${{ inputs.use_sonatype_central == 'true' }}
env:
SONATYPE_USERNAME: ${{ secrets.ossrh_username }}
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ inputs:
default: "false"
required: false
use_sonatype_central:
description: "When publishing the Java SDK, use to the Sonatype central portal"
description: "When publishing the Java SDK, use the Sonatype central portal"
default: "false"
required: false
publish_csharp:
Expand Down

0 comments on commit f3a38f7

Please sign in to comment.