-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit 081ebdc.
- Loading branch information
tanya732
committed
Oct 31, 2024
1 parent
8a551f4
commit 9bc85d5
Showing
3 changed files
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Publish release to Java | |
inputs: | ||
ossr-username: | ||
required: true | ||
ossr-token: | ||
ossr-password: | ||
required: true | ||
signing-key: | ||
required: true | ||
|
@@ -29,11 +29,12 @@ runs: | |
- uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 # [email protected] | ||
|
||
- name: Publish Android/Java Packages to Maven | ||
- name: Publish Java | ||
shell: bash | ||
run: ./gradlew publish -PisSnapshot=false --stacktrace | ||
env: | ||
MAVEN_USERNAME: ${{ inputs.ossr-username }} | ||
MAVEN_PASSWORD: ${{ inputs.ossr-token }} | ||
SIGNING_KEY: ${{ inputs.signing-key}} | ||
SIGNING_PASSWORD: ${{ inputs.signing-password}} | ||
if: inputs.is-android == 'false' | ||
run: ./gradlew clean assemble sign publishMavenJavaPublicationToMavenRepository -PisSnapshot=false -Pversion="${{ inputs.version }}" -PossrhUsername="${{ inputs.ossr-username }}" -PossrhPassword="${{ inputs.ossr-password }}" -PsigningKey="${{ inputs.signing-key }}" -PsigningPassword="${{ inputs.signing-password }}" | ||
|
||
- name: Publish Android | ||
shell: bash | ||
if: inputs.is-android == 'true' | ||
run: ./gradlew clean assemble sign publishAndroidLibraryPublicationToMavenRepository -PisSnapshot=false -Pversion="${{ inputs.version }}" -PossrhUsername="${{ inputs.ossr-username }}" -PossrhPassword="${{ inputs.ossr-password }}" -PsigningKey="${{ inputs.signing-key }}" -PsigningPassword="${{ inputs.signing-password }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters