From 756fdf0c7c3a2556c7859db3369d7529b7ca8b9a Mon Sep 17 00:00:00 2001 From: gabriel-logan Date: Tue, 9 Jul 2024 14:42:40 -0300 Subject: [PATCH] chore: Update Maven publish workflow to use local settings file --- .github/workflows/maven-publish.yml | 4 ++-- pom.xml | 2 +- settings.xml | 36 +++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 settings.xml diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 2c079d2..e9ad1d4 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -31,6 +31,6 @@ jobs: run: mvn -B package --file pom.xml - name: Publish to GitHub Packages Apache Maven - run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml + run: mvn deploy -s settings.xml env: - GITHUB_TOKEN: ${{ github.token }} + GITHUB_TOKEN: ${{ secrets.MULTIFORM_VALIDATOR_MVN_TOKEN_GITHUB_PACKAGES }} diff --git a/pom.xml b/pom.xml index e22c09e..a56a4f9 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ io.github multiform-validator - 0.0.1 + 0.0.2 Multiform Validator diff --git a/settings.xml b/settings.xml new file mode 100644 index 0000000..0b21cfa --- /dev/null +++ b/settings.xml @@ -0,0 +1,36 @@ + + + + github + + + + + github + + + central + https://repo1.maven.org/maven2 + + + github + https://maven.pkg.github.com/multiform-validator/java + + true + + + + + + + + + github + gabriel-logan + ${env.GITHUB_TOKEN} + + + \ No newline at end of file