Use custom maven settings.xml for deploy to github packages

This commit is contained in:
GeorgH93 2020-09-20 23:59:34 +02:00
parent dce86eb79d
commit 8318197225
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8
2 changed files with 8 additions and 1 deletions

View File

@ -29,7 +29,7 @@ jobs:
cp Minepacks/target/M*.jar artifacts/ cp Minepacks/target/M*.jar artifacts/
- name: Publish to GitHub Packages Apache Maven - name: Publish to GitHub Packages Apache Maven
run: 'mvn deploy -pl Minepacks-API,Minepacks -s $GITHUB_WORKSPACE/settings.xml "-DaltDeploymentRepository=github::default::https://maven.pkg.github.com/GeorgH93/Minepacks"' run: 'mvn deploy -pl Minepacks-API,Minepacks -s .github/workflows/settings.xml "-DaltDeploymentRepository=github::default::https://maven.pkg.github.com/GeorgH93/Minepacks"'
env: env:
GITHUB_TOKEN: ${{ github.token }} GITHUB_TOKEN: ${{ github.token }}

View File

@ -8,4 +8,11 @@
<mirrorOf>central,spigot-nexus,spigot-repo,placeholderapi,sonatype-nexus-snapshots,pcgf-repo,herocraftonline-repo,sk89q-repo,CodeMC,mvdw-software</mirrorOf> <mirrorOf>central,spigot-nexus,spigot-repo,placeholderapi,sonatype-nexus-snapshots,pcgf-repo,herocraftonline-repo,sk89q-repo,CodeMC,mvdw-software</mirrorOf>
</mirror> </mirror>
</mirrors> </mirrors>
<servers>
<server>
<id>github</id>
<username>${env.GITHUB_ACTOR}</username>
<password>${env.GITHUB_TOKEN}</password>
</server>
</servers>
</settings> </settings>