From 7d1fb83896e6cf4c34bf97e2fa24e8382d3b7fa1 Mon Sep 17 00:00:00 2001 From: trdelnk Date: Sun, 9 Jun 2024 20:19:12 +0300 Subject: [PATCH] test publication --- .github/workflows/publish-to-maven.yml | 66 ++++++-------------------- gradle.properties | 14 ++++++ 2 files changed, 29 insertions(+), 51 deletions(-) diff --git a/.github/workflows/publish-to-maven.yml b/.github/workflows/publish-to-maven.yml index 3ee99384..41287bf9 100644 --- a/.github/workflows/publish-to-maven.yml +++ b/.github/workflows/publish-to-maven.yml @@ -1,12 +1,9 @@ name: Publish to Maven Central on: - workflow_dispatch: - inputs: - version: - description: 'Library release version' - required: true push: + branches: + - publish-to-maven env: NEW_VERSION: ${{ github.event.inputs.version }} @@ -21,7 +18,7 @@ jobs: strategy: matrix: include: - - os: macos-latest +# - os: macos-latest - os: ubuntu-latest runs-on: ${{ matrix.os }} steps: @@ -30,6 +27,8 @@ jobs: - name: Setup node uses: actions/setup-node@v4 + with: + node-version: 20 - name: Validate Gradle Wrapper uses: gradle/actions/wrapper-validation@v3 @@ -50,12 +49,10 @@ jobs: ~/.konan key: ${{ runner.os }}-${{ hashFiles('**/.lock') }} +# Нужна ли эта проверка? - name: Ensure main branch run: ./.github/sh/validate_publishing_branch.sh - - name: Validate library version update - run: ./.github/sh/validate_version_update.sh "libraryVersion" "$NEW_VERSION" - - name: Validate publishing run: | ./gradlew \ @@ -63,45 +60,12 @@ jobs: -xlint \ publishToMavenLocal -# publish: -# env: -# ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_MAVENCENTRALUSERNAME }} -# ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_MAVENCENTRALPASSWORD }} -# ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGINMEMORYKEY }} -# ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGINMEMORYKEYID }} -# ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGINMEMORYKEYPASSWORD }} -# -# strategy: -# matrix: -# include: -# - target: publishToMavenLocal -# os: macos-latest -# - target: publishToMavenLocal -# os: ubuntu-latest -# runs-on: ${{ matrix.os }} -# -# steps: -# - name: Checkout -# uses: actions/checkout@v4 -# -# - name: Validate Gradle Wrapper -# uses: gradle/wrapper-validation-action@v3 -# -# - name: Setup JDK 17 -# uses: actions/setup-java@v3 -# with: -# java-version: '17' -# distribution: "zulu" -# -# - name: Setup Gradle cache -# uses: actions/cache@v3 -# with: -# path: | -# ~/.konan -# key: ${{ runner.os }}-${{ hashFiles('**/.lock') }} -# -# - name: Setup Gradle -# uses: gradle/actions/setup-gradle@v3 -# -# - name: Gradle publish -# run: ./gradlew ${{ matrix.target }} \ No newline at end of file + - name: Print + run: ls ~/.m2/repository/money/vivid/elmslie + +# - name: Publishing +# run: | +# ./gradlew \ +# -xtest \ +# -xlint \ +# publishToMavenLocal \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 5a8a3b91..994e4b69 100644 --- a/gradle.properties +++ b/gradle.properties @@ -50,3 +50,17 @@ android.defaults.buildfeatures.shaders=false libraryVersion=3.0.0-alpha11 pluginVersion=1.0.1 libraryGroup=money.vivid.elmslie + +mavenCentralUsername=R9K7klvF +mavenCentralPassword=SD3EiB652aPCxYab9J5xDIjCIXGkr+mZovnZsuxA9/rI + +signing.keyId=51BBCEDA +signing.password=Elmslie2103#@! +signing.secretKeyRingFile=/Users/ayakovlev/.gnupg/secring.gpg + +ORG_GRADLE_PROJECT_mavenCentralUsername=R9K7klvF +ORG_GRADLE_PROJECT_mavenCentralPassword=SD3EiB652aPCxYab9J5xDIjCIXGkr+mZovnZsuxA9/rI + +ORG_GRADLE_PROJECT_signingInMemoryKeyId=51BBCEDA +ORG_GRADLE_PROJECT_signingInMemoryKeyPassword=Elmslie2103#@! +ORG_GRADLE_PROJECT_signingInMemoryKey=lIYEZfuCyBYJKwYBBAHaRw8BAQdAHZXXZ0vDAMhE6f+HQ3impnSIshNpBY9ty2emXTeBHBj+BwMCuRGL63B+7xT5XcCOB63wFvxBPwH/+Fx8PpAETmobtgZ/4nGWsc0WczPfQhQJEOXBGi2nKb+yYj4eFvgz0end2b4pPAcajjd/24mcd3/aQbQmRWxtc2xpZSA8ZGV2ZWxvcGVyLm1vYmlsZUB2aXZpZC5tb25leT6ImQQTFgoAQRYhBAj0jMI9Q6ftzp5Q2upjfphRu87aBQJl+4LIAhsDBQkFo5qABQsJCAcCAiICBhUKCQgLAgQWAgMBAh4HAheAAAoJEOpjfphRu87aQ7wBANnpfQus95H3Trv1wMxpBTDHlecdJUDTWh5qTJteKll6AP4r1xDDgGLCrZRQL1Cyw4d+h3slVDeiemkcF7hY0sncCZyLBGX7gsgSCisGAQQBl1UBBQEBB0ABC4C5eseFBzAyK7iTZahBy4IAQm0QC6ialZAhwhoNKAMBCAf+BwMCDbnpzFHA7GL5ZrYHQSOWo6Qilp6gqeuhepMKxNBQUuLdYp0+BrZw/imsbdYx3Fc14Dt6P0HuzIuUFAJi/Ov7Yv77kuJVtN7z8/OzGHh/OYh+BBgWCgAmFiEECPSMwj1Dp+3OnlDa6mN+mFG7ztoFAmX7gsgCGwwFCQWjmoAACgkQ6mN+mFG7ztpfBgEAhbMdh1tinKbMulMfHfDQ0EIU8tGKnGw8Hfq4b8JuU8IA/ArlgLnvUpi3Bju/I8RkJr6A8tUSk6wwcxdWDWTyEt8D%