Skip to content

Commit

Permalink
change build to also sign
Browse files Browse the repository at this point in the history
  • Loading branch information
infeo committed Oct 30, 2024
1 parent 7d7aa97 commit be45042
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.cryptomator</groupId>
<artifactId>webdav-nio-adapter-servlet</artifactId>
<version>1.2.6</version>
<version>1.3.0-SNAPSHOT</version>
<name>WebDAV-NIO Adapter Servlet</name>
<description>Servlet serving NIO directory contents as WebDAV resources.</description>
<url>https://github.com/cryptomator/webdav-nio-adapter-servlet</url>
Expand Down

0 comments on commit be45042

Please sign in to comment.