@@ -14,64 +14,64 @@ jobs:
1414 permissions :
1515 contents : write
1616 packages : write
17-
17+
1818 steps :
1919 - name : Checkout code
2020 uses : actions/checkout@v4
2121 with :
2222 fetch-depth : 0
23-
23+
2424 - name : Download and setup Loom JDK
2525 run : |
2626 # Download the latest Loom build
2727 wget -q https://builds.shipilev.net/openjdk-jdk-loom/openjdk-jdk-loom-linux-x86_64-server.tar.xz
28-
28+
2929 # Extract the archive
3030 tar -xf openjdk-jdk-loom-linux-x86_64-server.tar.xz
31-
31+
3232 # Set JAVA_HOME for subsequent steps
3333 echo "JAVA_HOME=$PWD/jdk" >> $GITHUB_ENV
3434 echo "$PWD/jdk/bin" >> $GITHUB_PATH
35-
35+
3636 - name : Verify Java version
3737 run : |
3838 java -version
3939 echo "JAVA_HOME=$JAVA_HOME"
40-
40+
4141 - name : Cache Maven packages
4242 uses : actions/cache@v4
4343 with :
4444 path : ~/.m2
4545 key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
4646 restore-keys : ${{ runner.os }}-m2
47-
47+
4848 - name : Set up Git configuration
4949 run : |
5050 git config user.name "github-actions[bot]"
5151 git config user.email "github-actions[bot]@users.noreply.github.com"
52-
52+
5353 - name : Set release version
5454 run : |
5555 mvn versions:set -DnewVersion=${{ github.event.inputs.version }} -DgenerateBackupPoms=false
5656 git add .
5757 git commit -m "Release version ${{ github.event.inputs.version }}"
58-
58+
5959 - name : Build and verify
6060 run : mvn -B clean verify -P '!dev,release' -DskipTests
61-
61+
6262 - name : Set up GPG
6363 run : |
6464 echo "${{ secrets.GPG_PRIVATE_KEY }}" | base64 --decode | gpg --batch --import
6565 echo "GPG key imported successfully"
6666 env :
6767 GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
68-
68+
6969 - name : Stage to Maven Central
7070 run : |
7171 mvn -B deploy -P '!dev,release' -DskipTests -DaltDeploymentRepository=local::file:./target/staging-deploy
7272 env :
7373 GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
74-
74+
7575 - name : Run JReleaser
7676 run : |
7777 mvn -B jreleaser:full-release -P release
8282 JRELEASER_GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
8383 JRELEASER_GPG_PUBLIC_KEY : ${{ secrets.GPG_PUBLIC_KEY }}
8484 JRELEASER_GPG_SECRET_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
85-
85+
8686 - name : Bump to next SNAPSHOT version
8787 run : |
8888 # Calculate next version
@@ -93,12 +93,12 @@ jobs:
9393 PATCH=${PARTS[2]}
9494 NEXT_PATCH=$((PATCH + 1))
9595 NEXT_VERSION="${MAJOR}.${MINOR}.${NEXT_PATCH}-SNAPSHOT"
96-
96+
9797 echo "Bumping version to ${NEXT_VERSION}"
98-
98+
9999 # Update all pom.xml files to SNAPSHOT
100100 mvn versions:set -DnewVersion=${NEXT_VERSION} -DgenerateBackupPoms=false
101-
101+
102102 # Commit and push the version change
103103 git add pom.xml */pom.xml
104104 if git diff --staged --quiet; then
@@ -107,7 +107,7 @@ jobs:
107107 git commit -m "Prepare for next development iteration: ${NEXT_VERSION}"
108108 git push origin HEAD:master
109109 fi
110-
110+
111111 - name : JReleaser output
112112 if : always()
113113 uses : actions/upload-artifact@v4
0 commit comments