Skip to content

Maven Central Repo Deployment #25

Maven Central Repo Deployment

Maven Central Repo Deployment #25

Workflow file for this run

name: Maven Central Repo Deployment
on:
release:
types: [released, prereleased]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout Git Repo
uses: actions/checkout@v2
- name: Set up Maven Central Repo
uses: actions/setup-java@v1
with:
java-version: 1.8
server-id: sonatype-nexus-staging
server-username: ${{ secrets.OSSRH_USER }}
server-password: ${{ secrets.OSSRH_PASSWORD }}
gpg-passphrase: ${{ secrets.GPG_PASSWORD }}
- name: show gpg version
run: gpg --version
- name: Publish to Maven Central Repo
uses: samuelmeuli/action-maven-publish@v1
working-directory: /home/runner

Check failure on line 23 in .github/workflows/maven-publish.yml

View workflow run for this annotation

GitHub Actions / Maven Central Repo Deployment

Invalid workflow file

The workflow is not valid. .github/workflows/maven-publish.yml (Line: 23, Col: 9): Unexpected value 'working-directory'
with:
gpg_private_key: ${{ secrets.GPG_SECRET }}
gpg_passphrase: ${{ secrets.GPG_PASSWORD }}
nexus_username: ${{ secrets.OSSRH_USER }}
nexus_password: ${{ secrets.OSSRH_PASSWORD }}