Skip to content

Deploy to central

Deploy to central #1

Workflow file for this run

name: Deploy to central
on: workflow_dispatch
permissions:
contents: read
jobs:
build:
uses: ./.github/workflows/ci.yml

Check failure on line 11 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

error parsing called workflow ".github/workflows/deploy.yml" -> "./.github/workflows/ci.yml" (source branch with sha:1d0ce3c88317110c8791629a7f8ef2afafb343eb) : workflow is not reusable as it is missing a `on.workflow_call` trigger
deploy:
needs: build
steps:
- uses: actions/checkout@v3
- name: Setup Java JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PRIVATE_PASSWORD }}
- name: Gradle publish
uses: gradle/gradle-build-action@ce999babab2de1c4b649dc15f0ee67e6246c994f
with:
arguments: |
publish
closeSonatypeStagingRepository
-Psigning.gnupg.passphrase='${{secrets.GPG_PRIVATE_PASSWORD}}'
-Psigning.gnupg.keyName='${{secrets.GPG_PRIVATE_KEY_ID}}'
-PsonatypeUsername='${{secrets.SONATYPE_USERNAME}}'
-PsonatypePassword='${{secrets.SONATYPE_PASSWORD}}'