Skip to content

Commit

Permalink
Fix to the release build
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamKobus committed Feb 3, 2022
1 parent 8a29f3d commit 0be926a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v2

- name: Configure JDK 11
uses: actions/setup-java@v1
with:
java-version: 1.11

Expand All @@ -30,7 +31,7 @@ jobs:
- name: Publish to MavenCentral
run: ./gradlew publishReleasePublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository
env:
MAVEN_SNAPHOT: false
MAVEN_SNAPSHOT: false

- name: Clean up secrets
if: always()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Publish to MavenCentral
run: ./gradlew publishReleasePublicationToSonatypeRepository
env:
MAVEN_SNAPHOT: true
MAVEN_SNAPSHOT: true

- name: Clean up secrets
if: always()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.adamkobus.compose.navigation.demo.ui.demodialog
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.adamkobus.compose.navigation.NavActionConsumer
import com.adamkobus.compose.navigation.data.NavAction
import com.adamkobus.compose.navigation.demo.nav.FromDemoDialog
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.launch
import javax.inject.Inject
Expand All @@ -16,7 +16,7 @@ class DemoDialogVM @Inject constructor(
val interactions = DemoDialogInteractions(
onCancelClicked = {
viewModelScope.launch {
navActionConsumer.offer(NavAction.Back)
navActionConsumer.offer(FromDemoDialog.Dismiss)
}
}
)
Expand Down
2 changes: 1 addition & 1 deletion gradle/publishing-root.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ rootProject.ext["adamkobusSonatypeUsername"] = ""
rootProject.ext["adamkobusSonatypePassword"] = ""
rootProject.ext["adamkobusSonatypeStagingProfileId"] = ""

rootProject.ext["snapshot"] = System.getenv().getOrDefault("MAVEN_SNAPHOT", "true")
rootProject.ext["snapshot"] = System.getenv().getOrDefault("MAVEN_SNAPSHOT", "true")

def VERSION_BASE = "0.1.0"
def VERSION_SUFFIX = ""
Expand Down

0 comments on commit 0be926a

Please sign in to comment.