From 831819722516b185c9280c485c16020797520330 Mon Sep 17 00:00:00 2001 From: GeorgH93 Date: Sun, 20 Sep 2020 23:59:34 +0200 Subject: [PATCH] Use custom maven settings.xml for deploy to github packages --- .github/workflows/release.yml | 2 +- .github/workflows/settings.xml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 21d6c19..eef12fd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,7 +29,7 @@ jobs: cp Minepacks/target/M*.jar artifacts/ - 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: GITHUB_TOKEN: ${{ github.token }} diff --git a/.github/workflows/settings.xml b/.github/workflows/settings.xml index 02c218f..6cc12c4 100644 --- a/.github/workflows/settings.xml +++ b/.github/workflows/settings.xml @@ -8,4 +8,11 @@ central,spigot-nexus,spigot-repo,placeholderapi,sonatype-nexus-snapshots,pcgf-repo,herocraftonline-repo,sk89q-repo,CodeMC,mvdw-software + + + github + ${env.GITHUB_ACTOR} + ${env.GITHUB_TOKEN} + + \ No newline at end of file