This commit is contained in:
Amith Koujalgi 2023-10-27 14:24:00 +05:30
parent 7ea74b38e8
commit 359133d00f

View File

@ -33,11 +33,6 @@ jobs:
- name: Build with Maven
run: mvn -U -B clean package --file pom.xml
- name: Publish to GitHub Packages Repo
run: mvn deploy
env:
GITHUB_TOKEN: ${{ github.token }} # GITHUB_TOKEN is the default env for the password
- name: Set up Apache Maven Central (Overwrite settings.xml)
uses: actions/setup-java@v3
with: # running setup-java again overwrites the settings.xml
@ -52,9 +47,6 @@ jobs:
- name: Publish to GitHub Packages Apache Maven
# run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
# env:
# GITHUB_TOKEN: ${{ github.token }}
run: cat /home/runner/.m2/settings.xml && mvn deploy -s /home/runner/.m2/settings.xml
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}