Skip to content

Publish Maven Central Staging #31

Publish Maven Central Staging

Publish Maven Central Staging #31

Workflow file for this run

name: 'Publish Maven Central Staging'
on:
push:
tags:
- '*'
env:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
GPG_SIGNING_PASSWORD: ${{ secrets.GPG_SIGNING_PASSWORD }}
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
jobs:
publish:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Publish to GitHub Packages
run: ./gradlew publishAllPublicationsToGitHubPackagesRepository -PgithubPackagesUser=$GITHUB_ACTOR -PgithubPackagesKey=${{ secrets.GITHUB_TOKEN }}
- name: Publish to Sonatype Staging
run: ./gradlew publishAllPublicationsToSonatypeStagingRepository