Skip to content

Commit f5a117f

Browse files
Vikram KaltaVikram Kalta
authored andcommitted
fix: maven publish take 5
1 parent e3e59f2 commit f5a117f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/maven-publish.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,15 @@ jobs:
2222
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
2323
gpg-passphrase: GPG_PASSPHRASE
2424
# Build and publish to a local Maven repository for testing
25-
- name: Build and Publish to Local Maven Repository
26-
run: mvn --batch-mode clean install deploy -Dgpg.skip=true -DskipTests=true -DskipNexusStaging=true -DaltDeploymentRepository=local::default::file://$HOME/.m2/repository
25+
# - name: Build and Publish to Local Maven Repository
26+
# run: mvn --batch-mode clean install deploy -Dgpg.skip=true -DskipTests=true -DskipNexusStaging=true -DaltDeploymentRepository=local::default::file://$HOME/.m2/repository
27+
- name: Set up Maven settings
28+
run: |
29+
mkdir -p $HOME/.m2
30+
echo "<settings><servers><server><id>ossrh</id><username>${{ secrets.OSSRH_USERNAME }}</username><password>${{ secrets.OSSRH_PASSWORD }}</password></server></servers></settings>" > $HOME/.m2/settings.xml
31+
32+
- name: Publish to Maven Central
33+
run: mvn --batch-mode clean deploy
2734

2835
# - name: Publish package
2936
# run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy

0 commit comments

Comments
 (0)