Skip to content

Commit

Permalink
Build the small JAR in addition (#1652)
Browse files Browse the repository at this point in the history
* Build the small JAR in addition

* Add tag suffix
  • Loading branch information
samuel-rufi authored Dec 6, 2022
1 parent 69e1cbd commit d74b95e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/java_binding_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ jobs:
java-version: ${{ matrix.java }}
distribution: 'temurin'

- name: Build JAR for default target
- name: Build JAR for default target and an additional JAR that does not contain the native library
shell: bash
working-directory: bindings/java/
run: |
chmod +x gradlew
./gradlew build
./gradlew build jarWithoutNativeLibs
- name: Build JAR for aarch64-apple-darwin target
if: matrix.os == 'macos-latest'
Expand All @@ -100,19 +100,19 @@ jobs:
- name: Construct tag
uses: actions-ecosystem/action-regex-match@v2
id: tag
id: prepare-tag
with:
text: ${{ steps.filename.outputs.FILE_NAME }}
regex: '.*\d.\d.\d(-rc.\d)?'
regex: '(.*)(\d.\d.\d(-rc.\d)?)'
flags: m

- name: Upload JAR to Github
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: |
bindings/java/lib/build/libs/*.jar
tag_name: ${{ steps.tag.outputs.match }}
client/bindings/java/lib/build/libs/*.jar
tag_name: ${{ steps.prepare-tag.outputs.group1 }}java-${{ steps.prepare-tag.outputs.group2 }}-new
append_body: true
prerelease: true

Expand Down

0 comments on commit d74b95e

Please sign in to comment.