Skip to content

Commit 0c6292e

Browse files
committed
fix
1 parent eebe2f0 commit 0c6292e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/maven-publish.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ jobs:
4242
run: mvn --batch-mode deploy -s settings.xml
4343
env:
4444
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
45+
- name: Build with Maven
46+
run: mvn -B package --file pom.xml
47+
- name: Publish to GitHub Packages Apache Maven
48+
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
51+
4552
# - name: Maven Central Publish
4653
# # You may pin to the exact commit or the version.
4754
# # uses: zhoujunlin94/auto_deploy_maven_central@d008e8cc182d799a9fd507164f83c54be0b0a858

0 commit comments

Comments
 (0)