From 716dea77edc8df9aef9de1d53134beb0b0867f4c Mon Sep 17 00:00:00 2001 From: "Kyle K. Lin" Date: Thu, 22 Jul 2021 10:48:03 +0800 Subject: [PATCH] Update maven-publish.yml --- .github/workflows/maven-publish.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 6b86ef7..0291a0c 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -22,13 +22,12 @@ jobs: with: java-version: '8' distribution: 'adopt' - server-id: github # Value of the distributionManagement/repository/id field of the pom.xml - settings-path: ${{ github.workspace }} # location for the settings.xml file + server-id: my-github # Value of the distributionManagement/repository/id field of the pom.xml - name: Build with Maven - run: mvn -B package --file pom.xml + run: mvn -B package --file uia.comm/pom.xml - name: Publish to GitHub Packages Apache Maven - run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml + run: mvn deploy --file uia.comm/pom.xml env: - GITHUB_TOKEN: ${{ github.token }} + GITHUB_TOKEN: ${{ secrets.UIA4J_REPOS_DEPLOY }}