Skip to content

Merge pull request #105 from authzed/api-change/v1.37.0 #22

Merge pull request #105 from authzed/api-change/v1.37.0

Merge pull request #105 from authzed/api-change/v1.37.0 #22

Workflow file for this run

name: "Publish to Maven"
on:
push:
tags:
- '*'
jobs:
publish:
name: "Publish to Maven"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- uses: "actions/setup-java@v4"
with:
distribution: "adopt"
java-package: "jdk"
java-version: "17" # LTS
- uses: "bufbuild/buf-setup-action@v1"
with:
version: "1.18.0"
github_token: ${{ github.token }}
- name: "Publish to Sonatype"
env:
ORG_GRADLE_PROJECT_signingKey: "${{ secrets.SIGNING_KEY_ARMORED }}"
ORG_GRADLE_PROJECT_signingPassword: "${{ secrets.SIGNING_PASSWORD }}"
ORG_GRADLE_PROJECT_sonatypeUsername: "${{ secrets.SONATYPE_USERNAME }}"
ORG_GRADLE_PROJECT_sonatypePassword: "${{ secrets.SONATYPE_PASSWORD }}"
run: |
export ORG_GRADLE_PROJECT_release=${GITHUB_REF#refs/tags/}
./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
- name: Publish JavaDoc
uses: MathieuSoysal/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
javadoc-branch: javadoc
java-version: 17
project: gradle
target-folder: docs
custom-command: gradle javadoc -Prelease=${GITHUB_REF#refs/tags/}