File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33BUILD_VERSION=$( ./gradlew :pi4j-plugin-grpc:properties -q | grep ' version:' | awk ' {print $2}' )
44DIST_ZIP=$( find . -name " pi4j-plugin-grpc-server-${BUILD_VERSION} .zip" )
5+ SHADOW_JAR=$( find . -name " pi4j-plugin-grpc-server-${BUILD_VERSION} -all.jar" )
56
67# Stop if DIST_ZIP is empty
78if [ -z " ${DIST_ZIP} " ]; then
@@ -49,7 +50,7 @@ if [ "${RELEASE_EXISTS}" = "false" ]; then
4950fi
5051
5152echo " Uploading ${DIST_ZIP} to v${BUILD_VERSION} "
52- gh release upload " v${BUILD_VERSION} " " ${DIST_ZIP} " --clobber
53+ gh release upload " v${BUILD_VERSION} " " ${DIST_ZIP} " " ${SHADOW_JAR} " --clobber
5354RC=$?
5455if [ ${RC} -ne 0 ]; then
5556 echo " ERROR: Failed to upload asset to existing release v${BUILD_VERSION} "
Original file line number Diff line number Diff line change 4040 - name : Do Release
4141 if : github.ref == 'refs/heads/main' || github.event.inputs.manual_release == 'true'
4242 env :
43- GITHUB_USERNAME : ${{ github.actor }} # map actor -> GITHUB_USERNAME
44- GITHUB_TOKEN : ${{ secrets.ACTIONS_TOKEN }} # map secret -> GITHUB_TOKEN
43+ GITHUB_USERNAME : ${{ github.actor }}
44+ GITHUB_TOKEN : ${{ secrets.ACTIONS_TOKEN }}
4545 GH_TOKEN : ${{ secrets.ACTIONS_TOKEN }}
4646 run : |
4747 ./gradlew --configuration-cache publish
You can’t perform that action at this time.
0 commit comments