Skip to content

Commit 20bbf7a

Browse files
committed
publish release shadow jar
1 parent a943790 commit 20bbf7a

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎.github/scripts/perform-release.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
BUILD_VERSION=$(./gradlew :pi4j-plugin-grpc:properties -q | grep 'version:' | awk '{print $2}')
44
DIST_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
78
if [ -z "${DIST_ZIP}" ]; then
@@ -49,7 +50,7 @@ if [ "${RELEASE_EXISTS}" = "false" ]; then
4950
fi
5051

5152
echo "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
5354
RC=$?
5455
if [ ${RC} -ne 0 ]; then
5556
echo "ERROR: Failed to upload asset to existing release v${BUILD_VERSION}"

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ jobs:
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

0 commit comments

Comments
 (0)