Skip to content

Commit 65bf7b6

Browse files
committed
fix:fixed the publish yaml
1 parent 6c7524a commit 65bf7b6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88

99
permissions:
10-
contents: read
10+
contents: write # Changed from 'read' to 'write' - needed for creating releases
1111
packages: write
1212

1313
jobs:
@@ -30,7 +30,7 @@ jobs:
3030
echo "Publishing version: $VERSION"
3131
3232
- name: Update pom.xml version
33-
run: mvn versions:set -DnewVersion=${{ steps.version.outputs.VERSION }}
33+
run: mvn versions:set -DnewVersion=${{ steps.version.outputs.VERSION }} -DgenerateBackupPoms=false
3434

3535
- name: Set up JDK 17
3636
uses: actions/setup-java@v4
@@ -46,7 +46,7 @@ jobs:
4646
run: mvn --batch-mode clean package
4747

4848
- name: Publish to GitHub Packages
49-
run: mvn --batch-mode deploy
49+
run: mvn --batch-mode deploy -DskipTests
5050
env:
5151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5252

0 commit comments

Comments
 (0)