From be45042258d5578e43cb4bf66dc47207a0a8a1c7 Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Wed, 30 Oct 2024 16:26:01 +0100 Subject: [PATCH] change build to also sign --- .github/workflows/build.yml | 18 +++++------------- pom.xml | 2 +- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 313140a..c52d7d9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,17 +17,9 @@ jobs: - name: Ensure to use tagged version if: startsWith(github.ref, 'refs/tags/') run: mvn -B versions:set --file ./pom.xml -DnewVersion=${GITHUB_REF##*/} - - name: Build and Test + - name: Build and Sign id: buildAndTest - run: mvn -B clean install jacoco:report -Pcoverage - - uses: actions/upload-artifact@v4 - with: - name: artifacts - path: target/*.jar - - name: Create Release - uses: softprops/action-gh-release@v2 - if: startsWith(github.ref, 'refs/tags/') - with: - prerelease: true - token: ${{ secrets.CRYPTOBOT_RELEASE_TOKEN }} - generate_release_notes: true + run: mvn -B clean verify -Psign -DskipTests + env: + MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }} + MAVEN_GPG_KEY: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }} diff --git a/pom.xml b/pom.xml index ff01533..17abec5 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 org.cryptomator webdav-nio-adapter-servlet - 1.2.6 + 1.3.0-SNAPSHOT WebDAV-NIO Adapter Servlet Servlet serving NIO directory contents as WebDAV resources. https://github.com/cryptomator/webdav-nio-adapter-servlet