File tree Expand file tree Collapse file tree 1 file changed +5
-13
lines changed
Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -22,26 +22,18 @@ jobs:
2222 publish :
2323 runs-on : ubuntu-latest
2424 steps :
25- # Step 1: Check out the code
2625 - uses : actions/checkout@v4
27-
28- # Step 2: Set up the Java environment
2926 - uses : actions/setup-java@v4
3027 with :
3128 java-version : ' 8'
3229 distribution : ' zulu'
3330 server-id : ossrh
34- server-username : ${{ secrets.MAVEN_USERNAME }}
35- server-password : ${{ secrets.MAVEN_PASSWORD }}
36- gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
37- gpg-passphrase : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
38-
39- # Step 3: Verify if the GPG key is correctly imported
40- - name : Verify GPG Key
41- run : gpg --list-secret-keys --keyid-format LONG
31+ server-username : MAVEN_USERNAME
32+ server-password : MAVEN_PASSWORD
33+ gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
34+ gpg-passphrase : MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
4235
43- # Step 4: Build and publish using Maven
44- - name : Build and Publish with Maven
36+ - name : Build with Maven
4537 run : mvn clean deploy --batch-mode -DskipTests -P release -B -U -e
4638 env :
4739 MAVEN_USERNAME : ${{ secrets.MAVEN_USERNAME }}
You can’t perform that action at this time.
0 commit comments