Skip to content

Commit c384aed

Browse files
authored
Add version to publish logic (#596)
1 parent 50fed29 commit c384aed

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/actions/maven-publish/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ inputs:
1313
required: true
1414
is-android:
1515
required: true
16+
version:
17+
required: true
1618

1719
runs:
1820
using: composite
@@ -33,7 +35,7 @@ runs:
3335

3436
- name: Build Project
3537
shell: bash
36-
run: ./gradlew clean assemble -PisSnapshot=false
38+
run: ./gradlew clean assemble -PisSnapshot=false -Pversion="${{ inputs.version }}"
3739

3840
- name: Publish Java
3941
shell: bash

.github/workflows/java-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171
with:
7272
java-version: ${{ inputs.java-version }}
7373
is-android: ${{ inputs.is-android }}
74+
version: ${{ steps.get_version.outputs.version }}
7475
ossr-username: ${{ secrets.ossr-username }}
7576
ossr-password: ${{ secrets.ossr-password }}
7677
signing-key: ${{ secrets.signing-key }}

0 commit comments

Comments
 (0)