publish maven package #6
Workflow file for this run
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: publish maven package | ||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- '*' | ||
jobs: | ||
publish-github-release: | ||
needs: publish-central-and-pages | ||
Check failure on line 10 in .github/workflows/oss-release-deploy.yml GitHub Actions / publish maven packageInvalid workflow file
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Generate changelog | ||
id: changelog | ||
uses: metcalfc/[email protected] | ||
with: | ||
myToken: ${{ secrets.GH_TOKEN }} | ||
- name: Create GitHub Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
with: | ||
tag_name: ${{ github.event.inputs.releaseversion }} | ||
release_name: ${{ github.event.inputs.releaseversion }} | ||
body: | | ||
### Things that changed in this release | ||
${{ steps.changelog.outputs.changelog }} | ||
draft: false | ||
prerelease: ${{ contains(github.event.inputs.releaseversion, '-') }} | ||
oss-release-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
cache: maven | ||
- name: Setup Maven Central | ||
uses: actions/setup-java@v3 | ||
with: # overwrite settings.xml | ||
java-version: '17' | ||
distribution: 'adopt' | ||
server-id: sonatype | ||
server-username: OSSRH_USERNAME | ||
server-password: OSSRH_PASSWORD | ||
gpg-private-key: ${{ secrets.MAVEN_GPG_KEY }} | ||
gpg-passphrase: MAVEN_GPG_PASSPHRASE | ||
- name: Publish to Maven Central | ||
run: mvn clean deploy -P release -Dmaven.test.skip=true | ||
env: | ||
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} | ||
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} |