Publish #32
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
| # Publish Workflow — delegates to mbl-actionhub reusable publish workflow | ||
| # | ||
| # Triggers: | ||
| # - Schedule: every Monday 00:00 UTC | ||
| # - Schedule: 1st of every month 00:00 UTC | ||
| # - Manual dispatch: workflow_dispatch (optional specific module) | ||
| # | ||
| # To publish after a release tag, trigger manually via Actions → Publish → Run workflow. | ||
| name: Publish | ||
| on: | ||
| push: | ||
| tags: | ||
| - 'v[0-9]+.[0-9]+.[0-9]+' # v2.0.0, v2.0.1, … | ||
| schedule: | ||
| - cron: '0 0 * * 1' # weekly — every Monday 00:00 UTC | ||
| - cron: '0 0 1 * *' # monthly — 1st of every month 00:00 UTC | ||
| workflow_dispatch: | ||
| inputs: | ||
| module: | ||
| description: 'Specific module to publish (leave empty for all cmp-* modules)' | ||
| required: false | ||
| type: string | ||
| permissions: | ||
| contents: write # required by publish-kmp-library.yml (release creation, tag push) | ||
| jobs: | ||
| publish: | ||
|
Check failure on line 30 in .github/workflows/publish.yml
|
||
| uses: MobileByteLabs/mbl-actionhub/.github/workflows/publish-kmp-library.yml@v1.9.1 | ||
| with: | ||
| module-pattern: 'cmp-' | ||
| module: ${{ inputs.module || '' }} | ||
| group-id: 'io.github.mobilebytelabs' | ||
| artifact-id: 'cmp-paycraft' | ||
| java-version: '21' | ||
| java-distribution: 'zulu' | ||
| sonatype-host: 'CENTRAL_PORTAL' | ||
| create-github-release: true | ||
| # Publish the version DECLARED in gradle.properties (paycraft.version), not an | ||
| # auto-patch-bump off Maven/GitHub Releases. v1.0.12 lacked this, which shipped | ||
| # 2.0.3 instead of the declared 2.1.0. v1.9.1 resolves from gradle.properties. | ||
| version-source: 'gradle-properties' | ||
| gradle-properties-key: 'paycraft.version' | ||
| secrets: inherit | ||