Skip to content

Commit

Permalink
Update maven-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
akl7777777 authored Aug 16, 2024
1 parent 55bc669 commit d009f97
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,14 @@ jobs:
run: mvn -B package --file pom.xml

- name: Publish to GitHub Packages
run: |
mvn deploy:deploy-file \
-DgroupId=com.github.${{ github.repository_owner }} \
-DartifactId=ShellApiLogOptimizer \
-Dversion=0.0.1-SNAPSHOT \
-Dpackaging=jar \
-Dfile=target/ShellApiLogOptimizer-0.0.1-SNAPSHOT.jar \
-DrepositoryId=github \
-Durl=https://maven.pkg.github.com/${{ github.repository }} \
-DgeneratePom=true
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
server-id: github
settings-path: ${{ github.workspace }}

- name: Publish package
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d009f97

Please sign in to comment.