Skip to content

Publish Release

Publish Release #12

Workflow file for this run

name: Publish Release
on:
release:
types: [ created ]
concurrency:
group: "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-latest
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: 'zulu'
java-version: 17
- name: Setup gradle
uses: gradle/gradle-build-action@v2
- name: Publish
run: ./gradlew publishAllPublicationsToMavenCentralRepository