Skip to content

Publish

Publish #12

Workflow file for this run

name: Publish
on:
push:
tags:
- 'v*.*.*'
jobs:
publish-release:
runs-on: macos-latest
if: github.repository == 'christiandeange/ozone'
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
check-latest: true
- name: Publish Release
env:
SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
SONATYPE_NEXUS_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
ARTIFACT_SIGNING_PRIVATE_KEY: ${{ secrets.ARTIFACT_SIGNING_PRIVATE_KEY }}
ARTIFACT_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.ARTIFACT_SIGNING_PRIVATE_KEY_PASSWORD }}
run: |
ORG_GRADLE_PROJECT_mavenCentralUsername="$SONATYPE_NEXUS_USERNAME" \
ORG_GRADLE_PROJECT_mavenCentralPassword="$SONATYPE_NEXUS_PASSWORD" \
ORG_GRADLE_PROJECT_signingInMemoryKey="$ARTIFACT_SIGNING_PRIVATE_KEY" \
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword="$ARTIFACT_SIGNING_PRIVATE_KEY_PASSWORD" \
./gradlew clean publish :generator:publish --no-daemon --stacktrace
deploy-release-docs:

Check failure on line 36 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: 36, Col: 3): Error calling workflow 'christiandeange/ozone/.github/workflows/deploy_docs.yml@070a40c3737168dcabb50cf0bf70a2c9bfc6e116'. The workflow is requesting 'pages: write, id-token: write', but is only allowed 'pages: none, id-token: none'. .github/workflows/publish.yml (Line: 36, Col: 3): Error calling workflow 'christiandeange/ozone/.github/workflows/deploy_docs.yml@070a40c3737168dcabb50cf0bf70a2c9bfc6e116'. The nested job 'deploy-docs' is requesting 'pages: write, id-token: write', but is only allowed 'pages: none, id-token: none'.
uses: ./.github/workflows/deploy_docs.yml
secrets: inherit
needs:
- publish-release