Update tj-actions/changed-files action to v44 #119
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 | |
on: | |
push: | |
tags: [ 'v*' ] | |
branches: [ main ] | |
env: | |
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKey }} | |
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyPassword }} | |
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralPassword }} | |
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralUsername }} | |
jobs: | |
publish: | |
strategy: | |
matrix: | |
os: [ macos-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 11 | |
- name: Cache Build files | |
uses: actions/cache@v4 | |
if: ${{ !startsWith(matrix.os, 'windows') }} | |
with: | |
path: | | |
~/.konan | |
~/.gradle | |
key: ${{ runner.os }}-${{ hashFiles('gradle.properties') }}-v1 | |
- uses: gradle/gradle-build-action@v3 | |
name: Publish | |
with: | |
arguments: clean publishAllPublicationsToMavenCentralRepository | |
publish-docs: | |
name: Publish KDoc to Github Pages | |
runs-on: ubuntu-latest | |
if: startsWith(github.ref, 'refs/tags/v') | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 11 | |
- name: Cache Build files | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.konan | |
~/.gradle | |
key: ${{ runner.os }}-${{ hashFiles('gradle.properties') }} | |
- uses: gradle/gradle-build-action@v3 | |
name: Build Docs | |
with: | |
arguments: clean dokkaHtmlMultiModule | |
- name: Publish Docs | |
uses: JamesIves/[email protected] | |
with: | |
branch: docs | |
folder: build/dokka/htmlMultiModule | |
single-commit: true |