Build(deps): Bump org.jboss.logging:jboss-logging from 3.5.3.Final to 3.6.0.Final #79
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: Release | |
on: | |
push: | |
branches: | |
- main | |
pull_request: {} | |
release: | |
types: | |
- published | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Import GPG key | |
uses: crazy-max/ghaction-import-gpg@v6 | |
with: | |
gpg_private_key: ${{ secrets.GPG_KEY }} | |
passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
trust_level: 4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
cache: 'maven' | |
distribution: 'temurin' | |
java-version: '17' | |
- name: PR Check | |
if: github.event_name == 'pull_request' | |
run: mvn --batch-mode package | |
- name: Publish package to GitHub Maven Repository | |
run: mvn --batch-mode deploy | |
if: github.event_name != 'pull_request' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: 'Upload Release Artifacts' | |
if: github.event_name == 'release' | |
run: | | |
cd ${{ github.workspace }}/target | |
gh release upload ${{ github.event.release.tag_name }} *.jar* | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
continue-on-error: true | |
- name: Publish package to Maven Central Repository | |
if: github.event_name == 'release' | |
run: mvn -P release --batch-mode deploy | |
env: | |
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
MAVEN_AUTOPUBLISH: false | |
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} |