Skip to content

Commit 3168920

Browse files
authored
Merge pull request #7 from aboutbits/fix-workflow
fix workflow
2 parents 5e2099a + 5084743 commit 3168920

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020

21-
- uses: aboutbits/github-actions-java/setup-and-install@v3
21+
- uses: aboutbits/github-actions-java/setup@v3
2222

2323
- name: Set Version
2424
run: sed -i 's|<version>BUILD-SNAPSHOT</version>|<version>${{ github.event.inputs.version }}</version>|g' pom.xml
2525

2626
- name: Publish package
27-
run: mvn --batch-mode deploy
27+
run: mvn -s $GITHUB_WORKSPACE/.github/workflows/maven-settings.xml --batch-mode deploy
2828
env:
29-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
GITHUB_USER_NAME: ${{ github.actor }}
30+
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3031

3132
tag:
3233
timeout-minutes: 5

0 commit comments

Comments
 (0)