Skip to content

Commit

Permalink
ci: prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
jy95 committed Jan 12, 2025
1 parent e345a3d commit 370a807
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ name: Publish package to Maven and GitHub

on:
workflow_dispatch:
inputs:
dry-run:
description: "Run the workflow without actually publishing"
required: false
default: 'false'

env:
JAVA_VERSION: '21'
Expand Down Expand Up @@ -38,14 +33,16 @@ jobs:

# Publish package using the 'release' profile to exclude 'universal-coverage'
- name: 📦 Publish package
run: mvn -P ossrh -B deploy -DdryRun=${{ github.event.inputs.dry-run || 'false' }}
run: mvn -P ossrh -B deploy
env:
MAVEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_SIGNING_KEY_PASSWORD }}

# Publish to GitHub Packages Apache Maven
publish-github-packages:
# Wait until publication is done at Maven Central, before creating the release at Github
needs: publish-maven-central
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -65,6 +62,6 @@ jobs:

# Publish package using the 'release' profile to exclude 'universal-coverage'
- name: 📦 Publish package
run: mvn -P github -B deploy -DdryRun=${{ github.event.inputs.dry-run || 'false' }}
run: mvn -P github -B deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 370a807

Please sign in to comment.