Skip to content

osc-sdk-java maven publishing #8

osc-sdk-java maven publishing

osc-sdk-java maven publishing #8

Workflow file for this run

name: osc-sdk-java maven publishing
on:
release:
types: [released]
jobs:
publish:
environment: publish
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
server-id: ossrh
server-username: ${{ secrets.SONATYPE_USERNAME }}
server-password: ${{ secrets.SONATYPE_PASSWORD }}
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
- name: Publish
run: mvn deploy
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}