From 177f557d54c8013f2bc6791f5eff3d068b2a333b Mon Sep 17 00:00:00 2001 From: Vivchar Vitaly Date: Sat, 20 Jul 2024 00:08:20 +0700 Subject: [PATCH] fix file location --- .github/workflows/gradle.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index de3da51..601021d 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -14,7 +14,7 @@ env: SIGNING_SECRET_KEY_RING_CONTENT: ${{ secrets.SIGNING_SECRET_KEY_RING_CONTENT }} jobs: - build: + publish: runs-on: ubuntu-latest steps: @@ -30,12 +30,10 @@ jobs: - name: Prepare environment run: | echo "$SIGNING_SECRET_KEY_RING_CONTENT" | base64 -d > publish_key.gpg - ls -al gpg --batch --yes --decrypt --passphrase="$SECRET_PASSPHRASE" --output secret.gpg publish_key.gpg - ls -al - name: Grant execute permission for gradlew run: chmod +x ./gradlew - #- name: Publish with Gradle - # run: ./gradlew publish -Psigning.secretKeyRingFile=secret.gpg -Psigning.keyId=$SIGNING_KEYID -Psigning.password=$SIGNING_PASSWORD -Ptoken="$SONATYPE_TOKEN" + - name: Publish with Gradle + run: ./gradlew publish -Psigning.secretKeyRingFile=../secret.gpg -Psigning.keyId=$SIGNING_KEYID -Psigning.password=$SIGNING_PASSWORD -Ptoken="$SONATYPE_TOKEN"