From fdbc869455aa0a72de1370cc93eb209888219b66 Mon Sep 17 00:00:00 2001 From: Xavier Molloy Date: Wed, 3 Jul 2024 14:45:13 +0200 Subject: [PATCH] ci: revert osshr username and password, ktlint, and modify osshr username and password correctly --- .github/workflows/continuous-deployment.yml | 4 ++-- build.gradle.kts | 5 ++--- designsystem/build.gradle.kts | 1 - 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/continuous-deployment.yml b/.github/workflows/continuous-deployment.yml index 958482e7f..3438728e4 100644 --- a/.github/workflows/continuous-deployment.yml +++ b/.github/workflows/continuous-deployment.yml @@ -37,7 +37,7 @@ jobs: - name: Publish to maven run: ./.github/workflows/scripts/publish-maven.sh env: - OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} - OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + OSSRH_USERNAME: ${{ secrets.SONATYPE_OSSRH_USERNAME }} + OSSRH_PASSWORD: ${{ secrets.SONATYPE_OSSRH_PASSWORD }} SIGNING_PRIVATE_KEY: ${{ secrets.PGP_PRIVATE_KEY }} SIGNING_PASSWORD: ${{ secrets.PGP_PASSPHRASE }} diff --git a/build.gradle.kts b/build.gradle.kts index 174b6987e..9db369b56 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -21,7 +21,6 @@ if (project.hasProperty("removeSnapshotSuffix")) { version = mainVersion } - allprojects { apply(plugin = "org.jlleitschuh.gradle.ktlint") ktlint { @@ -80,8 +79,8 @@ subprojects { } } -val ossrhUsername: String? = System.getenv("SONATYPE_OSSRH_USERNAME") -val ossrhPassword: String? = System.getenv("SONATYPE_OSSRH_PASSWORD") +val ossrhUsername: String? = System.getenv("OSSRH_USERNAME") +val ossrhPassword: String? = System.getenv("OSSRH_PASSWORD") nexusPublishing { this.repositories { diff --git a/designsystem/build.gradle.kts b/designsystem/build.gradle.kts index 0b28ada97..2ae311c0a 100644 --- a/designsystem/build.gradle.kts +++ b/designsystem/build.gradle.kts @@ -9,7 +9,6 @@ plugins { id("app.cash.paparazzi").version("1.3.3") } - kotlin { androidTarget { publishLibraryVariants("release")