Skip to content

Commit

Permalink
JAVA: add test publish step
Browse files Browse the repository at this point in the history
  • Loading branch information
dkropachev committed Jan 10, 2025
1 parent 3787787 commit 7880a27
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,17 @@ jobs:
distribution: temurin
java-version: 8
cache: maven
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_CENTRAL_TOKEN
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE

- name: Compile Tests
run: make compile compile-test

- name: Validate
run: make verify

- name: Test publish
run: make verify-publish
3 changes: 3 additions & 0 deletions java/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ verify:
mvn javadoc:test-jar
mvn javadoc:test-resource-bundle

verify-publish:
mvn verify deploy -Prelease -DaltDeploymentRepository=ossrh::default::file:/tmp/alt-repo

fix:
mvn com.coveo:fmt-maven-plugin:format
echo y | mvn javadoc:fix
Expand Down

0 comments on commit 7880a27

Please sign in to comment.