File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -157,16 +157,19 @@ jobs:
157
157
distribution : ' adopt'
158
158
- name : Build JNI package
159
159
run : make build-jni
160
- - name : Build and Publish with Gradle
161
- working-directory : java
160
+ - name : Get current version
161
+ id : version
162
162
run : |
163
163
# removing v from in front of tag to get version
164
164
NEW_VERSION=$(echo '${{ env.NEW_RELEASE_TAG }}' | cut -d 'v' -f 2)
165
165
echo "New version: $NEW_VERSION"
166
- ./gradlew -PprojVersion="$NEW_VERSION" build
166
+ echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT
167
+ - name : Build and Publish with Gradle
168
+ working-directory : java
169
+ run : ./gradlew -PprojVersion='${{ steps.version.outputs.version }}' build
167
170
- name : Publish to GitHub Packages
168
171
working-directory : java
169
- run : ./gradlew publish
172
+ run : ./gradlew -PprojVersion='${{ steps.version.outputs.version }}' publish
170
173
if : env.TEST_RUN != 'true'
171
174
env :
172
175
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -199,7 +202,7 @@ jobs:
199
202
- name : Show versions
200
203
working-directory : bridge/node
201
204
run : |
202
- echo "Package: v{{ steps.version.outputs.version }}"
205
+ echo "Package: v$ {{ steps.version.outputs.version }}"
203
206
echo " Actual: ${{ env.NEW_RELEASE_TAG }}"
204
207
205
208
- name : Use the new version
You can’t perform that action at this time.
0 commit comments