Skip to content

Publish to Maven Central Portal #10

Publish to Maven Central Portal

Publish to Maven Central Portal #10

Workflow file for this run

name: Publish to Maven Central Portal
on:
release:
types:
- created
permissions:
pull-requests: write
deployments: write
checks: write
statuses: write
contents: write
jobs:
deploy:

Check failure on line 16 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / Publish to Maven Central Portal

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 16, Col: 3): The workflow must contain at least one job with no dependencies.

Check failure on line 16 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / Publish to Maven Central Portal

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 16, Col: 3): The workflow must contain at least one job with no dependencies.
runs-on: ubuntu-latest
needs: [ build ]
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- uses: gradle/gradle-build-action@v3
- name: Deploy to Maven Central
run: ./gradlew publishAllPublicationsToCentralPortal --no-configuration-cache --stacktrace
env:
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.GPG_KEY_ID }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_KEY_PASSWORD }}