diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 81f5a601..26913d68 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,4 +24,4 @@ jobs: - run: chmod +x gradlew - name: Publish - run: ./gradlew -Dorg.gradle.jvmargs=--enable-preview -DREPO_PASSWORD=${{ secrets.REPO_PASSWORD }} -DREPO_USERNAME=${{ secrets.REPO_USERNAME }} --no-daemon publish + run: ./gradlew :publish -Dorg.gradle.jvmargs=--enable-preview -DREPO_PASSWORD=${{ secrets.REPO_PASSWORD }} -DREPO_USERNAME=${{ secrets.REPO_USERNAME }} diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index ef75ba1f..07761819 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -20,7 +20,7 @@ jobs: - run: chmod +x gradlew - name: Assemble - run: ./gradlew -Dorg.gradle.jvmargs=--enable-preview -DREPO_PASSWORD=${{ secrets.REPO_PASSWORD }} -DREPO_USERNAME=${{ secrets.REPO_USERNAME }} --no-daemon assemble + run: ./gradlew :assemble -Dorg.gradle.jvmargs=--enable-preview -DREPO_PASSWORD=${{ secrets.REPO_PASSWORD }} -DREPO_USERNAME=${{ secrets.REPO_USERNAME }} - name: Run Compiled Artifact run: java --enable-preview -jar build/libs/cytosis.jar --ci-test diff --git a/build.gradle.kts b/build.gradle.kts index ad2dc33f..c116a43b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -85,10 +85,10 @@ publishing { authentication { create("basic") { // Use providers to get the properties or fallback to environment variables - println(System.getenv("REPO_PASSWORD").length) - println("pass: " + System.getenv("REPO_PASSWORD") + " | user: " + System.getenv("REPO_USERNAME")) - val user = providers.gradleProperty("username").orElse(System.getenv("REPO_USERNAME")) - val pass = providers.gradleProperty("password").orElse(System.getenv("REPO_PASSWORD")) + println(System.getProperty("REPO_PASSWORD").length) + println("pass: " + System.getProperty("REPO_PASSWORD") + " | user: " + System.getProperty("REPO_USERNAME")) + val user = providers.gradleProperty("username").orElse(System.getProperty("REPO_USERNAME")) + val pass = providers.gradleProperty("password").orElse(System.getProperty("REPO_PASSWORD")) credentials { username = user.toString() password = pass.toString()