From 65845bdd1ee79725ea3bbe867dcae99e4852d457 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 | 64 ++++---------------------- gradle.properties | 16 ++++++- 2 files changed, 23 insertions(+), 57 deletions(-) diff --git a/.github/workflows/publish-to-maven.yml b/.github/workflows/publish-to-maven.yml index 3ee99384..b611eb34 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 }} @@ -18,18 +15,15 @@ env: jobs: validate: - strategy: - matrix: - include: - - os: macos-latest - - os: ubuntu-latest - runs-on: ${{ matrix.os }} + runs-on: macos-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Setup node uses: actions/setup-node@v4 + with: + node-version: 20 - name: Validate Gradle Wrapper uses: gradle/actions/wrapper-validation@v3 @@ -50,12 +44,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 +55,5 @@ 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: Publishing + run: ./gradlew publishToMavenCentral \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 5a8a3b91..0cb6264d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -47,6 +47,20 @@ android.defaults.buildfeatures.shaders=false # # ----- Config ----- # -libraryVersion=3.0.0-alpha11 +libraryVersion=3.0.0-alpha12 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%