Skip to content

Maven Central publishing #4

Maven Central publishing

Maven Central publishing #4

Workflow file for this run

name: CI
on:
pull_request:
workflow_dispatch:
workflow_call:
push:
branches:
- main
release:
types: [ created ]
concurrency:
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true
jobs:
tests:
uses: ./.github/workflows/run_tests.yml
permissions:
contents: read
checks: write # required by mikepenz/action-junit-report
publish-maven:

Check failure on line 25 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 25, Col: 3): Error calling workflow 'adamko-dev/dokkatoo/.github/workflows/run_publish_maven.yml@ac111ef47626312e756d93a87c300955961dad6a'. The nested job 'sonatype-release' is requesting 'contents: read', but is only allowed 'contents: none'.
needs: tests
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/run_publish_maven.yml
secrets: inherit
permissions:
packages: write
publish-site:
needs: tests
if: github.ref == 'refs/heads/main' && github.event_name == 'release' && github.event.action == 'created'
uses: ./.github/workflows/run_publish_site.yml
permissions:
packages: write