Skip to content

Merge pull request #644 from openziti/dependabot/gradle/org.openapi.g… #417

Merge pull request #644 from openziti/dependabot/gradle/org.openapi.g…

Merge pull request #644 from openziti/dependabot/gradle/org.openapi.g… #417

name: Publish Release
on:
push:
branches:
- main
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
env:
BUILD_NUMBER: ${{ github.GITHUB_RUN_NUMBER }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
dependency-graph: generate-and-submit
- name: Build with Gradle
run: ./gradlew build assemble
- name: Show Info
run: ./gradlew :showInfo
- name: Publish to Sonatype
env:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }}
run: ./gradlew -i -S publishToSonatype