Skip to content

Commit 2fec6db

Browse files
committed
Fix get version info
1 parent 0327564 commit 2fec6db

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
uses: gradle/actions/setup-gradle@v3
5151
with:
5252
arguments: |
53+
${{ matrix.target }}
5354
closeSonatypeStagingRepository
5455
-Psigning.gnupg.passphrase='${{secrets.OSSRH_GPG_SECRET_KEY_PASSWORD}}'
5556
-Psigning.gnupg.keyName='${{secrets.OSSRH_GPG_SECRET_KEY_ID}}'

.github/workflows/gradle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545
path: |
4646
~/.konan
4747
key: ${{ runner.os }}-${{ hashFiles('**/.lock') }}
48+
- name: Retrieve Version
49+
run: echo "VERSION_NAME=$(./gradlew -q --no-configuration-cache printVersionName)" >> $GITHUB_ENV
4850
- name: Import GPG key
4951
uses: crazy-max/ghaction-import-gpg@v6
5052
if: success() && endsWith(env.VERSION_NAME, '-SNAPSHOT')
@@ -64,8 +66,6 @@ jobs:
6466
uses: gradle/actions/setup-gradle@v3
6567
with:
6668
arguments: ${{ matrix.target }}
67-
- name: Retrieve Version
68-
run: echo "VERSION_NAME=$(./gradlew -q --no-configuration-cache printVersionName)" >> $GITHUB_ENV
6969
- name: Upload Snapshot
7070
uses: gradle/actions/setup-gradle@v3
7171
if: success() && endsWith(env.VERSION_NAME, '-SNAPSHOT')

0 commit comments

Comments
 (0)