Merge pull request #142 from nomisRev/renovate/all #172
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: "Build" | |
on: | |
push: | |
paths-ignore: | |
- 'docs/**' | |
- '*.md' | |
branches: | |
- main | |
env: | |
JAVA_OPTS: -Xms1g -Xmx3g | |
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.configureondemand=true -Dorg.gradle.jvmargs=-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8" | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | |
with: | |
fetch-depth: 0 | |
- name: Set up Java | |
uses: actions/[email protected] | |
with: | |
distribution: 'zulu' | |
java-version: 11 | |
- name: Build | |
uses: gradle/[email protected] | |
with: | |
arguments: build --scan --full-stacktrace | |
- name: Bundle the build report | |
if: failure() | |
run: find . -type d -name 'reports' | zip -@ -r build-reports.zip | |
- name: Upload the build report | |
if: failure() | |
uses: actions/upload-artifact@master | |
with: | |
name: error-report | |
path: build-reports.zip | |
docs: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
with: | |
fetch-depth: 0 | |
- name: Dokka | |
id: Dokka | |
run: ./gradlew cleanDocs dokkaHtml | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Auto update docs | |
publish: | |
env: | |
SONATYPE_USER: '${{ secrets.SONATYPE_USER }}' | |
SONATYPE_PWD: '${{ secrets.SONATYPE_PWD }}' | |
OSS_USER: '${{ secrets.OSS_USER }}' | |
OSS_TOKEN: '${{ secrets.OSS_TOKEN }}' | |
OSS_STAGING_PROFILE_ID: '${{ secrets.OSS_STAGING_PROFILE_ID }}' | |
SIGNING_KEY_NAME: '${{ secrets.SIGNING_KEY_NAME }}' | |
SIGNING_KEY_ID: '${{ secrets.SIGNING_KEY_ID }}' | |
SIGNING_KEY_PASSPHRASE: '${{ secrets.SIGNING_KEY_PASSPHRASE }}' | |
SIGNING_KEY: '${{ secrets.SIGNING_KEY }}' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Java | |
uses: actions/[email protected] | |
with: | |
distribution: 'zulu' | |
java-version: 11 | |
- name: Publish to MavenCentral | |
run: ./gradlew build publishToSonatype | |
- name: Stop Gradle daemons | |
run: ./gradlew --stop |