Skip to content

Kache v2.1.0

Kache v2.1.0 #17

Workflow file for this run

name: Publish Release
on:
release:
types: [ created ]
concurrency:
group: "publish-release"
cancel-in-progress: false
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.GPG_KEY_ID }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_KEY_PASSWORD }}
jobs:
publish-release:
name: Publish Release
runs-on: macOS-14
if: github.repository == 'MayakaApps/Kache'
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Setup gradle
uses: gradle/actions/setup-gradle@v3
- name: Publish
run: ./gradlew --no-configuration-cache publishAllPublicationsToMavenCentralRepository
extract-version:
name: Extract Library Version
if: github.repository == 'MayakaApps/Kache'
uses: ./.github/workflows/extract-version.yml
publish-docs:
name: Publish Documentation
needs: extract-version
if: github.repository == 'MayakaApps/Kache'
uses: ./.github/workflows/publish-docs.yml
with:
library-version: ${{ needs.extract-version.outputs.library-version }}