From ac3a91ad54c4583569625a61c78821c3e5eedef7 Mon Sep 17 00:00:00 2001 From: Andreas Hufler Date: Tue, 10 Sep 2024 12:29:30 +0200 Subject: [PATCH 1/3] fix workflow --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3ccc8f6..de73bac 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,7 +24,7 @@ jobs: run: sed -i 's|BUILD-SNAPSHOT|${{ github.event.inputs.version }}|g' pom.xml - name: Publish package - run: mvn --batch-mode deploy + run: mvn -s $GITHUB_WORKSPACE/.github/workflows/maven-settings.xml --batch-mode deploy env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From c149a8ff1393a7c0d62806856c6b4dbd406e73ff Mon Sep 17 00:00:00 2001 From: Andreas Hufler Date: Tue, 10 Sep 2024 12:32:19 +0200 Subject: [PATCH 2/3] fix workflow --- .github/workflows/publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index de73bac..9cc4c11 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -26,7 +26,8 @@ jobs: - name: Publish package run: mvn -s $GITHUB_WORKSPACE/.github/workflows/maven-settings.xml --batch-mode deploy env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_USER_NAME: ${{ github.actor }} + GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} tag: timeout-minutes: 5 From 0136804ddc6920b6faa2cf681625e514d256e42a Mon Sep 17 00:00:00 2001 From: Andreas Hufler Date: Tue, 10 Sep 2024 12:38:50 +0200 Subject: [PATCH 3/3] fix workflow --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9cc4c11..ec9a169 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,7 +18,7 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: aboutbits/github-actions-java/setup-and-install@v3 + - uses: aboutbits/github-actions-java/setup@v3 - name: Set Version run: sed -i 's|BUILD-SNAPSHOT|${{ github.event.inputs.version }}|g' pom.xml