Skip to content

Commit

Permalink
Add required params (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
poovamraj authored Dec 18, 2023
1 parent b817c95 commit 50fed29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
8 changes: 5 additions & 3 deletions .github/actions/maven-publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,16 @@ runs:
- uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 # [email protected]

- run: ./gradlew clean assemble -PisSnapshot=false

- run: ./gradlew exportVersion -PisSnapshot=false
- name: Build Project
shell: bash
run: ./gradlew clean assemble -PisSnapshot=false

- name: Publish Java
shell: bash
if: inputs.is-android == 'false'
run: ./gradlew publishMavenJavaPublicationToMavenRepository -PossrhUsername="${{ inputs.ossr-username }}" -PossrhPassword="${{ inputs.ossr-password }}" -PsigningKey="${{ inputs.signing-key }}" -PsigningPassword="${{ inputs.signing-password }}" -PisSnapshot="false"

- name: Publish Android
shell: bash
if: inputs.is-android == 'true'
run: ./gradlew publishAndroidLibraryPublicationToMavenRepository -PossrhUsername="${{ inputs.ossr-username }}" -PossrhPassword="${{ inputs.ossr-password }}" -PsigningKey="${{ inputs.signing-key }}" -PsigningPassword="${{ inputs.signing-password }}" -PisSnapshot="false"
8 changes: 0 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,3 @@ dependencies {
}
}
}

// Creates a version.txt file containing the current version of the SDK.
// This file is picked up and parsed by our Ship Orb to determine the version.
task exportVersion() {
doLast {
new File(rootDir, "version.txt").text = "$version"
}
}

0 comments on commit 50fed29

Please sign in to comment.