Skip to content

Commit

Permalink
feat: github package publishing token
Browse files Browse the repository at this point in the history
  • Loading branch information
tintinkung committed Apr 22, 2024
1 parent 9bbbb66 commit 2c25713
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ jobs:
run: mvn -B package --file pom.xml

- name: Publish to GitHub Packages Apache Maven
run: mvn --batch-mode deploy -s $GITHUB_WORKSPACE/settings.xml
run: mvn --batch-mode deploy -s $GITHUB_WORKSPACE/settings.xml -Dgithub.token=${{ secrets.ACCESS_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<id>aseanbte-repo</id>
<username>asean-build-the-earth</username>
<!-- Public token with `read:packages` scope -->
<password>&#103;&#104;&#112;&#95;&#74;&#103;&#120;&#105;&#121;&#107;&#56;&#107;&#80;&#114;&#49;&#118;&#51;&#74;&#113;&#111;&#66;&#102;&#74;&#113;&#97;&#76;&#56;&#79;&#56;&#116;&#118;&#85;&#89;&#70;&#52;&#78;&#118;&#87;&#78;&#89;</password>
<password>${github.token}</password>
</server>
</servers>
</settings>

0 comments on commit 2c25713

Please # to comment.