77 runs-on : ubuntu-latest
88
99 steps :
10- - uses : actions/checkout@v3
10+ - uses : actions/checkout@v4
11+ with :
12+ fetch-depth : 0
13+ persist-credentials : false
1114
1215 - name : Set up JDK 21
1316 uses : oracle-actions/setup-java@v1
1417 with :
1518 website : jdk.java.net
1619 release : 21
17-
18- - name : Build with Maven
19- run : mvn clean install -B
20-
21- - name : Mutation testing
22- run : mvn org.pitest:pitest-maven:mutationCoverage -B
20+ - run : ./mvnw clean install -Pall-quality-gates -B
2321
2422 release :
2523 runs-on : ubuntu-latest
2624 needs : build
2725 if : github.ref == 'refs/heads/main'
2826
2927 steps :
30- - uses : actions/checkout@v3
28+ - uses : actions/checkout@v4
29+ with :
30+ fetch-depth : 0
31+ persist-credentials : false
3132
3233 - name : Set up JDK 21
3334 uses : oracle-actions/setup-java@v1
3637 release : 21
3738
3839 - name : Determine version
39- run : echo "POM_VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec | sed -e 's/-SNAPSHOT//')" >> $GITHUB_ENV
40+ run : echo "POM_VERSION=$(./mvnw -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec | sed -e 's/-SNAPSHOT//')" >> $GITHUB_ENV
4041
4142 - name : Import GPG key
4243 id : import_gpg
5152 git config user.name "GitHub Actions"
5253
5354 - name : Create release
54- run : mvn --settings .github/maven-settings.xml release:prepare release:perform -DskipTests -Prelease -B
55+ run : ./mvnw --settings .github/maven-settings.xml release:prepare release:perform -DskipTests -Prelease -B
5556 env :
5657 OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
5758 OSSRH_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
6667 token : ${{ secrets.GITHUB_TOKEN }}
6768 tag : ${{ env.POM_VERSION }}
6869 artifacts : spt-development-logging-spring-boot-autoconfigure/target/spt-development-logging-spring-boot-autoconfigure-${{ env.POM_VERSION }}.jar,spt-development-logging-spring-boot-starter/target/spt-development-logging-spring-boot-starter-${{ env.POM_VERSION }}.jar
69- artifactContentType : application/java-archive
70+ artifactContentType : application/java-archive
71+ bodyFile : documentation/releases/release-${{ env.POM_VERSION }}.md
0 commit comments