Bump actions/setup-java from 4.4.0 to 4.5.0 #425
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: Snapshot | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- trunk | |
jobs: | |
publish-snapshot: | |
if: ${{ github.repository == 'MiSikora/laboratory' }} | |
name: Publish Snapshot | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
- name: Checkout Repo | |
uses: actions/[email protected] | |
- name: Configure JDK | |
uses: actions/[email protected] | |
with: | |
distribution: zulu | |
java-version: 21 | |
- name: Cache Gradle Dirs | |
uses: actions/[email protected] | |
with: | |
path: | | |
~/.gradle/caches/ | |
~/.gradle/wrapper/ | |
key: cache-gradle-${{ hashFiles('**/*.gradle.kts', '**/gradle-wrapper.properties') }} | |
restore-keys: cache-gradle- | |
- name: Deploy Snapshot | |
env: | |
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }} | |
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} | |
run: ./gradlew publish --stacktrace | |
- name: Build HTML Docs | |
run: ./gradlew dokkaHtmlMultiModule --stacktrace | |
- name: Stop Gradle | |
run: ./gradlew --stop | |
- name: Publish Website | |
uses: mhausenblas/[email protected] | |
env: | |
CONFIG_FILE: ./mkdocs.yml | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
REQUIREMENTS: ./docs/requirements.txt |