From 841013b40de9f906dafc04d436a5dd7f09c13981 Mon Sep 17 00:00:00 2001 From: Tintinkung Date: Mon, 22 Apr 2024 23:10:26 +0700 Subject: [PATCH] test: github access token --- .github/workflows/maven-publish.yml | 5 +++-- settings.xml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 8df61f7..49c65f8 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -22,13 +22,14 @@ jobs: with: java-version: '17' distribution: 'temurin' - server-id: github # Value of the distributionManagement/repository/id field of the pom.xml + server-id: aseanbte-repo # Value of the distributionManagement/repository/id field of the pom.xml settings-path: ${{ github.workspace }} # location for the settings.xml file - name: Build with Maven run: mvn -B package --file pom.xml - name: Publish to GitHub Packages Apache Maven - run: mvn --batch-mode deploy -s $GITHUB_WORKSPACE/settings.xml -Dgithub.token=${{ secrets.ACCESS_TOKEN }} + run: mvn --batch-mode deploy -s $GITHUB_WORKSPACE/settings.xml -DACCESS_TOKEN=$ACCESS_TOKEN env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} \ No newline at end of file diff --git a/settings.xml b/settings.xml index cd06b6e..2e920c6 100644 --- a/settings.xml +++ b/settings.xml @@ -31,7 +31,7 @@ aseanbte-repo asean-build-the-earth - ${github.token} + ${ACCESS_TOKEN} \ No newline at end of file