Skip to content

Merge branch 'main' into move-hosuaby-dependencies-to-management #3

Merge branch 'main' into move-hosuaby-dependencies-to-management

Merge branch 'main' into move-hosuaby-dependencies-to-management #3

name: Publish package to the Maven Central Repository
on:
# TODO This trigger should be automated to match merging release-PRs later on
# release:
# types: [created]
workflow_dispatch
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Maven Central Repository
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
server-id: central
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Set version
- name: Publish package
run: |
./mvnw --batch-mode --no-transfer-progress changesets:release
./mvnw --batch-mode --no-transfer-progress -Ppublish deploy -DskipTests
env:
MAVEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_SIGNING_KEY_PASSWORD }}