File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 11name : Release new version
2+ permissions :
3+ contents : write
24
35on :
46 workflow_dispatch
57
68jobs :
79 build :
810 runs-on : ubuntu-latest
9-
1011 steps :
1112 - uses : actions/checkout@v5
12- -
uses :
webfactory/[email protected] 1313 with :
14- ssh-private-key : ${{ secrets.SSH_PRIVATE_KEY }}
14+ fetch-depth : 0
1515
1616 - name : Setup git profile
1717 run : |
@@ -21,18 +21,18 @@ jobs:
2121 - name : Set up JDK
2222 uses : actions/setup-java@v5
2323 with :
24- distribution : ' temurin'
24+ distribution : temurin
2525 java-version : ' 17'
2626 cache : maven
2727 server-id : central # Value of the distributionManagement/repository/id field of the pom.xml
2828 server-username : SONATYPE_USERNAME
2929 server-password : SONATYPE_PASSWORD
30- gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }} # has to be read directly from secrets
30+ gpg-private-key : ${{ secrets.PGP_SECRET }} # has to be read directly from secrets
3131 gpg-passphrase : MAVEN_GPG_PASSPHRASE # default name used by maven-gpg-plugin
3232
33- - name : Release new version
34- run : mvn clean -Darguments=-DskipTests - ntp -B release:clean release:prepare release:perform -P release
33+ - name : Release
34+ run : mvn - ntp -B release:clean release:prepare release:perform -P release -Darguments="-DskipTests"
3535 env :
3636 SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
3737 SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
38- MAVEN_GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
38+ MAVEN_GPG_PASSPHRASE : ${{ secrets.PGP_PASSPHRASE }}
Original file line number Diff line number Diff line change @@ -13,17 +13,17 @@ jobs:
1313 - name : Set up JDK
1414 uses : actions/setup-java@v5
1515 with :
16- distribution : ' temurin'
16+ distribution : temurin
1717 java-version : ' 17'
1818 cache : maven
1919 server-id : central # Value of the distributionManagement/repository/id field of the pom.xml
2020 server-username : SONATYPE_USERNAME
2121 server-password : SONATYPE_PASSWORD
22- gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }} # has to be read directly from secrets
22+ gpg-private-key : ${{ secrets.PGP_SECRET }} # has to be read directly from secrets
2323 gpg-passphrase : MAVEN_GPG_PASSPHRASE # default name used by maven-gpg-plugin
2424 - name : Deploy snapshot
25- run : mvn -Dmaven.test.skip=true - ntp -B clean deploy -P release
25+ run : mvn -ntp -B clean deploy -P release -Darguments="-DskipTests"
2626 env :
2727 SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
2828 SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
29- MAVEN_GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
29+ MAVEN_GPG_PASSPHRASE : ${{ secrets.PGP_PASSPHRASE }}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ under the License.
3131 <url >https://scoverage.github.io/scoverage-maven-plugin/${project.version} /</url >
3232
3333 <scm >
34- <connection >scm:git:git ://github.com/scoverage/scoverage-maven-plugin.git</connection >
34+ <connection >scm:git:https ://github.com/scoverage/scoverage-maven-plugin.git</connection >
3535 <
developerConnection >scm:git:
[email protected] :scoverage/scoverage-maven-plugin.git</
developerConnection >
3636 <url >https://github.com/scoverage/scoverage-maven-plugin/tree/${project.scm.tag} </url >
3737 <tag >HEAD</tag >
You can’t perform that action at this time.
0 commit comments