0 Central Release Job #1
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: "0 Central Release Job" # Adding the 0 so that it's on top of the list of github actions | |
| on: | |
| workflow_dispatch: # Manual trigger so you don't release on every push | |
| inputs: | |
| ref_to_release: | |
| description: "[Optional] Branch or commit to release. Default: Github default branch" | |
| required: false | |
| type: string | |
| # default has to be a static string, no variables allowed | |
| default: "" | |
| jobs: | |
| call-release-job: | |
| permissions: | |
| contents: write # needed to push commit and tag back to the repository | |
| uses: project-ncl/shared-github-actions/.github/workflows/maven-release.yml@646d9b629925d6405fb06ed1476aefd6b2cdca86 # v0.0.23 | |
| with: | |
| java_version: "11" | |
| ref_to_release: ${{ inputs.ref_to_release }} | |
| release_command: 'mvn -B -V release:prepare release:perform -DlocalCheckout=true -DpushChanges=false' | |
| secrets: | |
| SONATYPE_USERNAME: ${{ secrets.SONATYPE_BOT_USERNAME }} | |
| SONATYPE_PASSWORD: ${{ secrets.SONATYPE_BOT_TOKEN }} | |
| GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | |
| GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} |