Configure Nexus publishing for Sonatype #16
Workflow file for this run
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: Package Java SDK | |
| on: | |
| push: | |
| tags: ["flipt-java-**"] | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| description: "Git tag to package (e.g., flipt-java-v1.3.0). Leave empty to use latest tag." | |
| required: false | |
| type: string | |
| permissions: | |
| contents: write | |
| env: | |
| SONATYPE_PORTAL_USERNAME: ${{ secrets.SONATYPE_PORTAL_USERNAME }} | |
| SONATYPE_PORTAL_PASSWORD: ${{ secrets.SONATYPE_PORTAL_PASSWORD }} | |
| PGP_PRIVATE_KEY: ${{ secrets.PGP_PRIVATE_KEY }} | |
| PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | |
| jobs: | |
| build: | |
| uses: ./.github/workflows/package-sdks.yml | |
| with: | |
| sdk: java | |
| tag: ${{ inputs.tag || github.ref }} | |
| secrets: inherit |