Skip to content

Revert "upgrade: actions" #19

Revert "upgrade: actions"

Revert "upgrade: actions" #19

name: "Publish To OSSRH"
on:
push:
branches: [ master ]
jobs:
publish:
name: "Publish To OSSRH"
runs-on: ubuntu-latest
steps:
# step 1
- name: "Checkout"
uses: actions/[email protected]
# step 2
- name: "Setup Java JDK"
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: 8
server-id: ossrh
server-username: OSSRH_USERNAME
server-password: OSSRH_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PASSPHRASE
# step 3
- name: "Print maven version"
run: |
mvn -version
# step 4
- name: "Publish-To-OSSRH"
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
run: |
mvn clean deploy -Ppublish-auto -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;