Skip to content

Updated workflow secrets to use ossr-token#662

Merged
tanya732 merged 2 commits intomasterfrom
update-workflow
Sep 9, 2024
Merged

Updated workflow secrets to use ossr-token#662
tanya732 merged 2 commits intomasterfrom
update-workflow

Conversation

@tanya732
Copy link
Copy Markdown
Contributor

@tanya732 tanya732 commented Sep 9, 2024

Changes

Please describe both what is changing and why this is important. Include:

  • Updated github workflow, changes performed in release.yml, java-release.yml and action.yml file.

References

Auth0 Android SDK

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

  • This change adds test coverage
  • This change has been tested on the latest version of the platform/language or why not

Checklist

@tanya732 tanya732 requested a review from a team as a code owner September 9, 2024 12:08
Comment on lines 36 to -44
- name: Publish Java
shell: bash
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 }}"
run: ./gradlew clean assemble sign publishMavenJavaPublicationToMavenRepository -PisSnapshot=false -Pversion="${{ inputs.version }}" -PossrhUsername="${{ inputs.ossr-username }}" -PossrhPassword="${{ inputs.ossr-token }}" -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 }}"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commands wouldn't work as we are passing ossr-token as value to the ossrhPassword parameter. You may refer here for what we are doing in Auth0.android

Furthermore, we've simplified these two steps into a single step which can work for both Android and Java packages,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the commands, in reference with auth0-android

@tanya732 tanya732 merged commit 4bcff45 into master Sep 9, 2024
@tanya732 tanya732 deleted the update-workflow branch September 9, 2024 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants