This repository was archived by the owner on Dec 3, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +19
-5
lines changed
Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Original file line number Diff line number Diff line change 9090 - name : Checkout
9191 uses : actions/checkout@v4
9292
93- - name : Download build output
93+ - name : Download build artifacts
9494 uses : actions/download-artifact@v4
9595 with :
9696 name : build-output
@@ -116,17 +116,31 @@ jobs:
116116 </settings>
117117 EOF
118118
119- - name : Deploy to GitHub Maven Repository
119+ # 🔥 Deploy the JAR
120+ - name : Deploy JAR to GitHub Maven Repo
120121 run : |
121- mvn -B deploy -Dregistry=github
122+ mvn deploy:deploy-file \
123+ -Dfile=target/*.jar \
124+ -DpomFile=pom.xml \
125+ -DrepositoryId=github \
126+ -Durl=https://maven.pkg.github.com/${{ github.repository }}
127+
128+ # 🔥 Deploy the ZIP as a classifier
129+ - name : Deploy ZIP to GitHub Maven Repo
130+ run : |
131+ mvn deploy:deploy-file \
132+ -Dfile=target/*.zip \
133+ -DpomFile=pom.xml \
134+ -Dclassifier=dist \
135+ -Dpackaging=zip \
136+ -DrepositoryId=github \
137+ -Durl=https://maven.pkg.github.com/${{ github.repository }}
122138
123139 - name : Create GitHub Release
124140 uses : softprops/action-gh-release@v1
125141 with :
126142 name : " Release ${{ needs.build.outputs.version }}"
127143 tag_name : " ${{ github.ref_name }}"
128- draft : false
129- prerelease : false
130144 files : |
131145 target/*.jar
132146 target/*.zip
You can’t perform that action at this time.
0 commit comments