Skip to content

Commit

Permalink
try to release properly in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
CamJN committed Dec 10, 2023
1 parent 0080c25 commit 0a1d2bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
gpg-passphrase: MAVEN_GPG_PASSPHRASE
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
- name: Publish package to Maven Central
run: mvn --batch-mode deploy
run: make release
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
Expand All @@ -92,7 +92,7 @@ jobs:
check-latest: true
server-id: github
- name: Publish package to GitHub Packages
run: mvn -DuseGithub=true --batch-mode deploy
run: make release_github
env:
GITHUB_TOKEN: ${{ github.token }}
working-directory: getargv.java
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,9 @@ release:
mvn release:clean release:prepare
mvn release:perform

release_github:
mvn -DuseGithub=true release:clean release:prepare
mvn -DuseGithub=true release:perform

install:
mvn install

0 comments on commit 0a1d2bd

Please sign in to comment.