From e41dbd0f4e9ad6d78c073c5869f30dc5a7bca31d Mon Sep 17 00:00:00 2001 From: Strongest Number 9 <16169054+StrongestNumber9@users.noreply.github.com> Date: Mon, 30 Jan 2023 10:28:54 +0200 Subject: [PATCH] Fixes maven-publish workflow (#6) --- .github/workflows/maven-publish.yml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 7228d7a..80d64b9 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -29,6 +29,6 @@ jobs: run: echo "RELEASE_VERSION=$(git describe --tags)" >> $GITHUB_ENV - name: Publish to GitHub Packages Apache Maven - run: mvn -B -Drevision=${{ env.RELEASE_VERSION }} -Dsha1= -Dchangelist= deploy -s ${{ github.workspace }}/settings.xml + run: mvn -Ppublish-github-packages -B -Drevision=${{ env.RELEASE_VERSION }} -Dsha1= -Dchangelist= deploy -s ${{ github.workspace }}/settings.xml env: GITHUB_TOKEN: ${{ github.token }} diff --git a/pom.xml b/pom.xml index 522fd5c..5b82498 100644 --- a/pom.xml +++ b/pom.xml @@ -305,7 +305,7 @@ github GitHub Packages - https://maven.pkg.github.com/teragrep/jlt_01 + https://maven.pkg.github.com/${env.GITHUB_REPOSITORY}