chore(deps): update dependency com.vanniktech.maven.publish to v0.30.… #273
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Snapshot | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: "publish-snapshot" | |
cancel-in-progress: true | |
env: | |
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }} | |
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }} | |
jobs: | |
extract-version: | |
name: Extract Library Version | |
if: github.repository == 'MayakaApps/Kache' | |
uses: ./.github/workflows/extract-version.yml | |
publish-library: | |
name: Publish Snapshot | |
needs: extract-version | |
runs-on: macOS-14 | |
if: github.repository == 'MayakaApps/Kache' && endsWith(needs.extract-version.outputs.library-version, '-SNAPSHOT') | |
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 | |
publish-docs: | |
name: Publish Documentation | |
needs: extract-version | |
if: github.repository == 'MayakaApps/Kache' && endsWith(needs.extract-version.outputs.library-version, '-SNAPSHOT') | |
uses: ./.github/workflows/publish-docs.yml | |
with: | |
library-version: ${{ needs.extract-version.outputs.library-version }} |