This repository was archived by the owner on Jul 27, 2025. It is now read-only.
Updated Build Number #27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish Snapshot CI | |
| on: | |
| pull_request: | |
| branches: | |
| - integration | |
| - master | |
| push: | |
| branches: | |
| - integration | |
| # https://stackoverflow.com/questions/61096521/how-to-use-gpg-key-in-github-actions | |
| # https://github.com/actions/setup-java/issues/83 | |
| # FIX - https://stackoverflow.com/questions/53992950/maven-gpg-plugin-failing-with-inappropriate-ioctl-for-device-when-running-unde | |
| # https://keys.openpgp.org | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Fix GPG | |
| run: export GPG_TTY=$(tty) | |
| - name: Set up Maven Central Repository | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '21' | |
| distribution: 'adopt' | |
| cache: maven | |
| server-id: ossrh | |
| server-username: OSSRH_USERNAME | |
| server-password: OSSRH_TOKEN | |
| gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import | |
| gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase | |
| - name: Test and Publish Package to Apache Maven Central | |
| run: mvn clean deploy | |
| env: | |
| OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
| OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }} | |
| MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
| API_PASSWORD: ${{ secrets.API_PASSWORD }} | |
| RELEASE_API_PASSWORD: ${{ secrets.RELEASE_API_PASSWORD }} |