Skip to content

feat: 2.0.0 beta sdk (#125) #93

feat: 2.0.0 beta sdk (#125)

feat: 2.0.0 beta sdk (#125) #93

Workflow file for this run

name: Java Publish Package
on:
push:
paths: "apitable.java/.version"
tags:
- "apitable.java@*"
jobs:
publish:
defaults:
run:
shell: bash
working-directory: apitable.java
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 8
distribution: zulu
- name: Install gpg secret key
run: |
cat <(echo -e "${{ secrets.GPG_SECRET }}") | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
- name: Deploy to Sonatype
run: ./mvnw deploy -Prelease -DskipTests -B --settings .mvn/settings.xml
env:
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GPG_KEY_NAME: ${{ secrets.GPG_SIGNING_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSWORD }}