Skip to content

Commit 05a1b81

Browse files
committed
ci : add bindings-java jar artifact to release
This commit adds the jar artifact from bindings java to the release process.
1 parent 3a66f9f commit 05a1b81

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,11 +1120,19 @@ jobs:
11201120
chmod +x ./gradlew
11211121
./gradlew build --info
11221122
1123+
- name: Pack jar artifacts
1124+
id: pack_artifacts
1125+
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') ||
1126+
github.event.inputs.create_release == 'true' ||
1127+
github.event.inputs.pre_release_tag != '' }}
1128+
run: |
1129+
zip -r whispercpp.jar bindings/java/build/libs/whispercpp-*.jar
1130+
11231131
- name: Upload jar
11241132
uses: actions/upload-artifact@v4
11251133
with:
11261134
name: whispercpp.jar
1127-
path: bindings/java/build/libs/whispercpp-*.jar
1135+
path: whispercpp.jar
11281136

11291137
# - name: Publish package
11301138
# if: ${{ github.ref == 'refs/heads/master' }}

0 commit comments

Comments
 (0)