Skip to content

Publish

Publish #32

Workflow file for this run

# 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

View workflow run for this annotation

GitHub Actions / Publish

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 30, Col: 3): Error calling workflow 'MobileByteLabs/mbl-actionhub/.github/workflows/publish-kmp-library.yml@v1.9.1'. The workflow is requesting 'pull-requests: write', but is only allowed 'pull-requests: none'. .github/workflows/publish.yml (Line: 30, Col: 3): Error calling workflow 'MobileByteLabs/mbl-actionhub/.github/workflows/publish-kmp-library.yml@v1.9.1'. The nested job 'bump-next-version' is requesting 'pull-requests: write', but is only allowed 'pull-requests: none'.
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