Skip to content

Publish package to the Maven Central Repository #6

Publish package to the Maven Central Repository

Publish package to the Maven Central Repository #6

Workflow file for this run

name: Publish package to the Maven Central Repository
on:
release:
types: [created,edited]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: debug
run: echo ${{ secrets.GEHEIM }}
- uses: actions/checkout@v3
- name: Set up Maven Central Repository
uses: actions/setup-java@v3
with:
java-version: '17.0.8+7'
distribution: 'temurin'
cache: maven
server-id: ossrh
server-username: ${{ secrets.OSSRH_USERNAME }}
server-password: ${{ secrets.OSSRH_TOKEN }}
- name: Publish package
run: mvn -Drevision=${{ github.event.release.tag_name }} --batch-mode deploy