Skip to content

fix(ci): attempt to fix ci #5

fix(ci): attempt to fix ci

fix(ci): attempt to fix ci #5

Workflow file for this run

name: Publish to Maven Central
on:
push:
branches:
- ci-setup
release:
types: [created]
workflow_dispatch:
inputs:
version:
description: 'Version to publish'
required: false
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'zulu'
cache: 'maven'
server-id: central
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.SIGNING_KEY }}
gpg-passphrase: SIGNING_PASSWORD
- name: Set version (if provided)
if: github.event.inputs.version != ''
run: |
mvn versions:set -DnewVersion=${{ github.event.inputs.version }} -DgenerateBackupPoms=false
- name: Build and publish
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
run: |
mvn clean deploy -P release \
--no-transfer-progress \
--batch-mode \
# -DskipTests \
# -Dgpg.keyname=${{ secrets.SIGNING_KEY_ID }} \
# -Dgpg.passphrase=${{ secrets.SIGNING_PASSWORD }} \
# -Dgpg.pinentry-mode=loopback \