Skip to content

Commit e4b4a83

Browse files
Vikram KaltaVikram Kalta
authored andcommitted
fix: trying to publish with original config take 2
1 parent bb4647a commit e4b4a83

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/maven-publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ jobs:
3838
server-id: github
3939
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
4040
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
41+
- name: Set up Maven settings
42+
run: |
43+
mkdir -p $HOME/.m2
44+
echo "<settings><servers><server><id>ossrh</id><username>${{ secrets.OSSRH_USERNAME }}</username><password>${{ secrets.OSSRH_PASSWORD }}</password></server></servers></settings>" > $HOME/.m2/settings.xml
4145
- name: Publish to GitHub Packages
4246
run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy
4347
env:

0 commit comments

Comments
 (0)