Skip to content

Fix: (real) maven central publishing #41

Fix: (real) maven central publishing

Fix: (real) maven central publishing #41

Workflow file for this run

name: Build
on:
push:
branches: "master"
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 11
- run: chmod +x gradlew && ./gradlew build publishGprSnapshotPublicationToGitHubPackagesRepository
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: ./gradlew publishGprPublicationToGitHubPackagesRepository
if: github.event_name == 'release' && github.event.action == 'created'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: ./gradlew publishToSonatype
if: github.event_name == 'release' && github.event.action == 'created'
env:
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
SONATYPE_PASS: ${{ secrets.SONATYPE_PASS }}
SIGN_KEY: ${{ secrets.SIGN_KEY }}
SIGN_PW: ${{ secrets.SIGN_PW }}