fix2 deploy #20
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Snapshot | ||
on: | ||
workflow_dispatch: | ||
branches: | ||
- 'master' | ||
- | ||
jobs: | ||
deploy: | ||
name: Deploy Snapshot | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: 'main' | ||
fetch-depth: 0 | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 11 | ||
server-id: ossrh | ||
server-username: ${{ secrets.OSSRH_USERNAME }} | ||
server-password: ${{ secrets.OSSRH_TOKEN }} | ||
gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} | ||
gpg-passphrase: ${{ secrets.OSSRH_GPG_PASSPHRASE }} | ||
cache: 'maven | ||
- name: Publish to Maven Central repository | ||
env: | ||
SIGN_KEY_PASS: ${{ secrets.OSSRH_GPG_PASSPHRASE }} | ||
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
OSSRH_PASSWORD: ${{ secrets.OSSRH_TOKEN }} | ||
run: | | ||
mvn -U -B clean deploy -P release |