Skip to content

Update dependencies minor versions (#57) #52

Update dependencies minor versions (#57)

Update dependencies minor versions (#57) #52

name: Publish package to GitHub Packages
on:
push:
branches:
- develop
tags:
- '*'
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- id: install-secret-key
name: Install gpg secret key
run: |
(echo -n "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | base64 --decode | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
- name: Publish to the Maven Central Repository
run: mvn --batch-mode -Possrh -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} source:jar javadoc:jar -f pom.xml deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
- uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Publish to GitHub Packages
run: mvn --batch-mode -Pgithub source:jar javadoc:jar -f pom.xml deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}