release-serde-api.yaml 959 B

123456789101112131415161718192021222324252627282930
  1. name: "Infra: Release: Serde API"
  2. on: workflow_dispatch
  3. jobs:
  4. release-serde-api:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@v3
  8. with:
  9. fetch-depth: 0
  10. - run: |
  11. git config user.name github-actions
  12. git config user.email github-actions@github.com
  13. - name: Set up JDK
  14. uses: actions/setup-java@v3
  15. with:
  16. java-version: "17"
  17. distribution: "zulu"
  18. cache: "maven"
  19. - id: install-secret-key
  20. name: Install GPG secret key
  21. run: |
  22. cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --import
  23. - name: Publish to Maven Central
  24. run: |
  25. 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