Skip to content

Commit d009f97

Browse files
authored
Update maven-publish.yml
1 parent 55bc669 commit d009f97

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/maven-publish.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,14 @@ jobs:
2424
run: mvn -B package --file pom.xml
2525

2626
- name: Publish to GitHub Packages
27-
run: |
28-
mvn deploy:deploy-file \
29-
-DgroupId=com.github.${{ github.repository_owner }} \
30-
-DartifactId=ShellApiLogOptimizer \
31-
-Dversion=0.0.1-SNAPSHOT \
32-
-Dpackaging=jar \
33-
-Dfile=target/ShellApiLogOptimizer-0.0.1-SNAPSHOT.jar \
34-
-DrepositoryId=github \
35-
-Durl=https://maven.pkg.github.com/${{ github.repository }} \
36-
-DgeneratePom=true
27+
uses: actions/setup-java@v4
28+
with:
29+
java-version: '11'
30+
distribution: 'temurin'
31+
server-id: github
32+
settings-path: ${{ github.workspace }}
33+
34+
- name: Publish package
35+
run: mvn --batch-mode deploy
3736
env:
3837
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)