Try something else for publishing.

This commit is contained in:
Bassett, Justin 2021-10-13 23:46:49 -04:00
parent 23329d90cb
commit cbf217c51a
4 changed files with 10 additions and 4 deletions

View File

@ -58,7 +58,7 @@ jobs:
KEYSTORE_ALIAS_PASSWORD: ${{ secrets.UPLOAD_KEYSTORE_ALIAS_PASSWORD }} KEYSTORE_ALIAS_PASSWORD: ${{ secrets.UPLOAD_KEYSTORE_ALIAS_PASSWORD }}
VERSION: ${{ steps.rel_number.outputs.version }} VERSION: ${{ steps.rel_number.outputs.version }}
VERSION_CODE: ${{ steps.rel_number.outputs.version-code }} VERSION_CODE: ${{ steps.rel_number.outputs.version-code }}
run: ./gradlew :app:bundleFullRelease :wear:bundleRelease run: ./gradlew bundleRelease
- name: Check for build need - name: Check for build need
run: | run: |
@ -75,4 +75,4 @@ jobs:
KEYSTORE_ALIAS_PASSWORD: ${{ secrets.UPLOAD_KEYSTORE_ALIAS_PASSWORD }} KEYSTORE_ALIAS_PASSWORD: ${{ secrets.UPLOAD_KEYSTORE_ALIAS_PASSWORD }}
VERSION: ${{ steps.rel_number.outputs.version }} VERSION: ${{ steps.rel_number.outputs.version }}
VERSION_CODE: ${{ steps.rel_number.outputs.version-code }} VERSION_CODE: ${{ steps.rel_number.outputs.version-code }}
run: ./gradlew :app:publishFullReleaseBundle :wear:publishReleaseBundle || echo "Issue uploading Release, may just be nothing has changed" run: ./gradlew publishReleaseBundle || echo "Issue uploading Release, may just be nothing has changed"

View File

@ -115,7 +115,7 @@ play {
track.set("beta") track.set("beta")
resolutionStrategy.set(ResolutionStrategy.IGNORE) resolutionStrategy.set(ResolutionStrategy.IGNORE)
// We will depend on the wear commit. // We will depend on the wear commit.
commit.set(false) commit.set(true)
} }
dependencies { dependencies {

View File

@ -30,6 +30,12 @@ allprojects {
} }
} }
gradle.projectsEvaluated {
project(":app").tasks.matching { it.name.startsWith("publish") }.configureEach {
mustRunAfter(project(":wear").tasks.matching { it.name.startsWith("publish") })
}
}
tasks.register("clean").configure { tasks.register("clean").configure {
delete("build") delete("build")
} }

View File

@ -68,7 +68,7 @@ play {
serviceAccountCredentials.set(file("playStorePublishServiceCredentialsFile.json")) serviceAccountCredentials.set(file("playStorePublishServiceCredentialsFile.json"))
track.set("beta") track.set("beta")
resolutionStrategy.set(com.github.triplet.gradle.androidpublisher.ResolutionStrategy.IGNORE) resolutionStrategy.set(com.github.triplet.gradle.androidpublisher.ResolutionStrategy.IGNORE)
commit.set(true) commit.set(false)
} }
dependencies { dependencies {