|
| 1 | +name: cloudsmith_release |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + inputs: |
| 6 | + parent_version: |
| 7 | + description: 'New killbill-oss-parent version' |
| 8 | + required: false |
| 9 | + default: '' |
| 10 | + perform_version: |
| 11 | + description: 'tag to (re-)perform (in case of release:perform failure)' |
| 12 | + required: false |
| 13 | + default: '' |
| 14 | + |
| 15 | +jobs: |
| 16 | + release: |
| 17 | + # maint-for-0-24-x: gh-actions-shared's own maint-for-0-24-x branch still ships the old |
| 18 | + # Sonatype-based pipeline (MAVEN_USERNAME/MAVEN_PASSWORD secrets) and has no release.yml at |
| 19 | + # all (confirmed 404 on that ref), so it cannot be used for a Cloudsmith-based release. Use |
| 20 | + # @main instead, which has the Cloudsmith-aware reusable release workflow. |
| 21 | + uses: killbill/gh-actions-shared/.github/workflows/release.yml@main |
| 22 | + with: |
| 23 | + parent_version: ${{ github.event.inputs.parent_version }} |
| 24 | + perform_version: ${{ github.event.inputs.perform_version }} |
| 25 | + java_version: '11' |
| 26 | + java_distribution: 'temurin' |
| 27 | + # maint-for-0-24-x: killbill-oss-parent's maint-for-0-24-x lineage (tracked by this |
| 28 | + # plugin's 0.146.63 parent) only ships a "sonatype-oss-release" profile that targets |
| 29 | + # Sonatype Central, incompatible with our Cloudsmith distributionManagement override in |
| 30 | + # pom.xml. "oss-release" is a local, temporary profile defined in this repo's pom.xml |
| 31 | + # (modeled after killbill-oss-parent@master's Cloudsmith-compatible profile) that this |
| 32 | + # reusable workflow's default `sonatype-oss-release` value would otherwise miss. Remove |
| 33 | + # this override once the parent moves to a released, Cloudsmith-enabled killbill-oss-parent. |
| 34 | + release_profile: 'oss-release' |
| 35 | + secrets: |
| 36 | + BUILD_USER: ${{ secrets.BUILD_USER }} |
| 37 | + BUILD_TOKEN: ${{ secrets.BUILD_TOKEN }} |
| 38 | + CLOUDSMITH_CENTRAL_PASSWORD: ${{ secrets.CLOUDSMITH_CENTRAL_PASSWORD }} |
| 39 | + CLOUDSMITH_KILLBILL_MAVEN_REPO_PASSWORD: ${{ secrets.CLOUDSMITH_KILLBILL_MAVEN_REPO_PASSWORD }} |
| 40 | + CLOUDSMITH_DISTRIBUTION_MAN_USERNAME: ${{ secrets.CLOUDSMITH_DISTRIBUTION_MAN_USERNAME }} |
| 41 | + CLOUDSMITH_DISTRIBUTION_MAN_PASSWORD: ${{ secrets.CLOUDSMITH_DISTRIBUTION_MAN_PASSWORD }} |
| 42 | + GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} |
| 43 | + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} |
0 commit comments