2929 cache : ' maven'
3030
3131 - name : Build and (headless) test with Maven
32- uses : GabrielBB /xvfb-action@v1
32+ uses : smithki /xvfb-action@v1.1.2
3333 with :
3434 run : mvn -U -B -ntp package
3535
@@ -59,21 +59,30 @@ jobs:
5959 cache : ' maven'
6060
6161 - name : Deploy snapshot with Maven if settings defined
62- run : test ! -f ci.settings.xml || mvn -B -ntp deploy -DskipTests=true -s ci.settings.xml -P base-deploy,snapshot-deploy,!non-deployable-modules
62+ run : test ! -f ci.settings.xml || mvn -B -ntp deploy -DskipTests -s ci.settings.xml -P base-deploy,snapshot-deploy,!non-deployable-modules
6363 env :
6464 OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
6565 OSSRH_TOKEN : ${{ secrets.OSSRH_TOKEN }}
6666 SIGN_KEY : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
6767 SIGN_KEY_PASS : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
6868
6969 - name : Dryrun release assets with Maven
70- run : mvn -B -ntp install -DskipTests=true -P full-release -Djreleaser.dry.run=true
70+ run : mvn -B -ntp install -DskipTests -P full-release -Djreleaser.output.directory=$PWD/out/jreleaser -Djreleaser. dry.run
7171 env :
7272 JRELEASER_GITHUB_TOKEN : ${{ secrets.JRELEASER_GITHUB_TOKEN }}
7373 JRELEASER_GPG_PUBLIC_KEY : ${{ secrets.MAVEN_GPG_PUBLIC_KEY }}
7474 JRELEASER_GPG_SECRET_KEY : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
7575 JRELEASER_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
7676
77+ - name : Upload JReleaser output
78+ if : always()
79+ uses : actions/upload-artifact@v3
80+ with :
81+ name : assets-snapshot-log
82+ path : |
83+ out/jreleaser/trace.log
84+ out/jreleaser/output.properties
85+
7786 release-job :
7887 needs : build-and-test-job
7988 if : startsWith(github.repository, 'nbbrd/') && startsWith(github.ref, 'refs/tags/v')
@@ -100,7 +109,7 @@ jobs:
100109 cache : ' maven'
101110
102111 - name : Deploy with Maven if settings defined
103- run : test ! -f ci.settings.xml || mvn -B -ntp deploy -DskipTests=true -s ci.settings.xml -P base-deploy,release-deploy,!non-deployable-modules
112+ run : test ! -f ci.settings.xml || mvn -B -ntp deploy -DskipTests -s ci.settings.xml -P base-deploy,release-deploy,!non-deployable-modules
104113 env :
105114 OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
106115 OSSRH_TOKEN : ${{ secrets.OSSRH_TOKEN }}
@@ -110,9 +119,18 @@ jobs:
110119 MAVEN_OPTS : " --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED"
111120
112121 - name : Release assets with Maven
113- run : mvn -B -ntp install -DskipTests=true -P full-release
122+ run : mvn -B -ntp install -DskipTests -P full-release -Djreleaser.output.directory=$PWD/out/jreleaser
114123 env :
115124 JRELEASER_GITHUB_TOKEN : ${{ secrets.JRELEASER_GITHUB_TOKEN }}
116125 JRELEASER_GPG_PUBLIC_KEY : ${{ secrets.MAVEN_GPG_PUBLIC_KEY }}
117126 JRELEASER_GPG_SECRET_KEY : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
118127 JRELEASER_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
128+
129+ - name : Upload JReleaser output
130+ if : always()
131+ uses : actions/upload-artifact@v3
132+ with :
133+ name : assets-release-log
134+ path : |
135+ out/jreleaser/trace.log
136+ out/jreleaser/output.properties
0 commit comments