From e90bd12b4c16b3920a9e36708e702df111e07b95 Mon Sep 17 00:00:00 2001 From: Fabrice Bibonne Date: Tue, 21 May 2024 10:15:48 +0200 Subject: [PATCH] ci(provide releases jar suited for native compile) --- .github/workflows/create-release.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/create-release.yml diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml new file mode 100644 index 0000000..20da3ff --- /dev/null +++ b/.github/workflows/create-release.yml @@ -0,0 +1,27 @@ +name: 'Build and Release' + +on: + push: + tags: + - "v*.*.*" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up JDK + uses: actions/setup-java@v3 + with: + java-version: '21' + distribution: 'temurin' + - name: Build + run: > + mvn -B install --file metadata-oas/pom.xml + mvn -B install --file metadata-modelapi/pom.xml + mvn -B install --file metadata-interfaceapi/pom.xml + mvn -B -Pnative package --file metadata-webimpl/pom.xml + - name: Release + uses: softprops/action-gh-release@v2 + with: + files: metadata-webimpl/target/metadata.jar