Skip to content

Commit 50fed29

Browse files
authored
Add required params (#595)
1 parent b817c95 commit 50fed29

2 files changed

Lines changed: 5 additions & 11 deletions

File tree

.github/actions/maven-publish/action.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,16 @@ runs:
3131
3232
- uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 # pin@1.1.0
3333

34-
- run: ./gradlew clean assemble -PisSnapshot=false
35-
36-
- run: ./gradlew exportVersion -PisSnapshot=false
34+
- name: Build Project
35+
shell: bash
36+
run: ./gradlew clean assemble -PisSnapshot=false
3737

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

4243
- name: Publish Android
44+
shell: bash
4345
if: inputs.is-android == 'true'
4446
run: ./gradlew publishAndroidLibraryPublicationToMavenRepository -PossrhUsername="${{ inputs.ossr-username }}" -PossrhPassword="${{ inputs.ossr-password }}" -PsigningKey="${{ inputs.signing-key }}" -PsigningPassword="${{ inputs.signing-password }}" -PisSnapshot="false"

build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,3 @@ dependencies {
9797
}
9898
}
9999
}
100-
101-
// Creates a version.txt file containing the current version of the SDK.
102-
// This file is picked up and parsed by our Ship Orb to determine the version.
103-
task exportVersion() {
104-
doLast {
105-
new File(rootDir, "version.txt").text = "$version"
106-
}
107-
}

0 commit comments

Comments
 (0)