1212 type : boolean
1313 default : false
1414
15+ concurrency :
16+ group : ${{ github.workflow }}-${{ github.ref }}
17+ cancel-in-progress : false # Don't cancel releases in progress
18+
1519env :
1620 VERSION : ${{ github.event.inputs.releaseversion }}
1721
2125 steps :
2226 - run : echo "Will start a Maven Central upload with version ${{ github.event.inputs.releaseversion }}"
2327
24- - name : free disk space
25- continue-on-error : true
26- run : |
27- df -h
28- sudo swapoff -a
29- sudo rm -f /swapfile
30- sudo apt clean
31- if [ -n "$(docker image ls -q)" ]; then
32- docker rmi -f $(docker image ls -aq) || true
33- fi
34- df -h
35-
3628 - uses : actions/checkout@v6
3729
3830 - name : Set up settings.xml for Maven Central Repository
@@ -51,21 +43,18 @@ jobs:
5143 MAVEN_PASSWORD : ${{ secrets.OSS_SONATYPE_PASSWORD }}
5244 MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
5345
54- - name : Cache node modules
55- uses : actions/cache@v5
56- env :
57- cache-name : cache-node-modules
46+ - name : Set up Node
47+ uses : actions/setup-node@v6
5848 with :
59- path : ~/.npm
60- key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
61- restore-keys : |
62- ${{ runner.os }}-build-${{ env.cache-name }}-
49+ node-version : ' 24'
50+ cache : ' npm'
51+ cache-dependency-path : ' **/package-lock.json'
6352
6453 - name : Set projects Maven version to GitHub Action GUI set version
6554 run : ./mvnw versions:set "-DnewVersion=${{ github.event.inputs.releaseversion }}" --no-transfer-progress
6655
67- - name : Publish package
68- run : ./mvnw -B deploy --no-transfer-progress -P central-deploy -DskipTests
56+ - name : Publish package (parallel modules)
57+ run : ./mvnw -B -T 1C deploy --no-transfer-progress -P central-deploy -DskipTests
6958 env :
7059 # TODO: This is a workaround for NEXUS-27902 which uses XStream that fails on JVM >16
7160 JDK_JAVA_OPTIONS : " --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"
7463 MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
7564
7665 - name : Build documentation with Maven
77- run : ./mvnw -B --no-transfer-progress -pl spring-boot-admin-docs site
66+ run : ./mvnw -B --no-transfer-progress -pl spring-boot-admin-docs site
7867
7968 - name : Deploy documentation to GitHub Pages for version ${{ github.event.inputs.releaseversion }}
8069 uses : JamesIves/github-pages-deploy-action@v4.8.0
@@ -109,18 +98,6 @@ jobs:
10998 steps :
11099 - uses : actions/checkout@v6
111100
112- - name : free disk space
113- continue-on-error : true
114- run : |
115- df -h
116- sudo swapoff -a
117- sudo rm -f /swapfile
118- sudo apt clean
119- if [ -n "$(docker image ls -q)" ]; then
120- docker rmi -f $(docker image ls -aq) || true
121- fi
122- df -h
123-
124101 - name : Generate changelog
125102 id : changelog
126103 uses : metcalfc/changelog-generator@v4.7.0
@@ -135,5 +112,3 @@ jobs:
135112 token : ${{ secrets.GITHUB_TOKEN }}
136113 draft : false
137114 prerelease : ${{ contains(github.event.inputs.releaseversion, '-') }}
138-
139-
0 commit comments