Skip to content

Commit

Permalink
test publication
Browse files Browse the repository at this point in the history
  • Loading branch information
trdelnk committed Jun 18, 2024
1 parent 47cb47a commit 229aa55
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 57 deletions.
68 changes: 12 additions & 56 deletions .github/workflows/publish-to-maven.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand All @@ -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
Expand All @@ -50,58 +44,20 @@ 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 \
-xtest \
-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 }}
- name: Publishing
run: |
./gradlew \
-xtest \
-xlint \
publishToMavenCentral
16 changes: 15 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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%

0 comments on commit 229aa55

Please sign in to comment.