123456789101112131415161718192021222324252627282930 |
- name: "Infra: Release: Serde API"
- on: workflow_dispatch
- jobs:
- release-serde-api:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
- with:
- fetch-depth: 0
- - run: |
- git config user.name github-actions
- git config user.email github-actions@github.com
- - name: Set up JDK
- uses: actions/setup-java@v3
- with:
- java-version: "17"
- distribution: "zulu"
- cache: "maven"
- - id: install-secret-key
- name: Install GPG secret key
- run: |
- cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --import
- - name: Publish to Maven Central
- run: |
- mvn source:jar javadoc:jar package gpg:sign -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} -Dserver.username=${{ secrets.NEXUS_USERNAME }} -Dserver.password=${{ secrets.NEXUS_PASSWORD }} nexus-staging:deploy -pl kafka-ui-serde-api -s settings.xml
|