Skip to content

Release

Release #18

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
publishAsciidoctorJDiagram:
description: "Publish asciidoctorj-diagram"
type: boolean
default: true
required: true
publishAsciidoctorJDiagramDitaaMini:
description: "Publish asciidoctorj-diagram-ditaamini"
type: boolean
default: true
required: true
publishAsciidoctorJDiagramPlantuml:
description: "Publish asciidoctorj-diagram-plantuml"
type: boolean
default: true
required: true
env:
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.GPG_KEY_ID }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }}
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.OSS_SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.OSS_SONATYPE_PASSWORD }}
jobs:
release:
environment: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
- name: Build
shell: bash
run: |
if ${{ inputs.publishAsciidoctorJDiagram }}; then GOALS="publishMavenAsciidoctorJDiagramPublicationToSonatypeRepository "; fi
if ${{ inputs.publishAsciidoctorJDiagramDitaaMini }}; then GOALS="$GOALS publishMavenAsciidoctorJDiagramDitaaminiPublicationToSonatypeRepository "; fi
if ${{ inputs.publishAsciidoctorJDiagramPlantuml }}; then GOALS="$GOALS publishMavenAsciidoctorJDiagramPlantumlPublicationToSonatypeRepository "; fi
echo "Publishing goals: ${GOALS}"
unset GEM_PATH GEM_HOME JRUBY_OPTS
./gradlew --no-daemon clean build
./gradlew --no-daemon $GOALS closeSonatypeStagingRepository