This needs to build #55
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: | |
branches: [ "master" ] | |
release: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: github.event_name != 'pull_request' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Setup JDK" | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 11 | |
distribution: "zulu" | |
- name: "Generate Dokka" | |
uses: gradle/actions/setup-gradle@v3 | |
with: | |
arguments: dokkaHtml | |
- name: "Publish Documentation" | |
uses: crazy-max/ghaction-github-pages@v4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
build_dir: build/dokka/html | |
- name: "Publish with Gradle" | |
uses: gradle/actions/setup-gradle@v3 | |
env: | |
ORG_GRADLE_PROJECT_mavenUsername: ${{ secrets.MAVEN_USERNAME }} | |
ORG_GRADLE_PROJECT_mavenPassword: ${{ secrets.MAVEN_PASSWORD }} | |
with: | |
arguments: test publish | |
- name: "Publish Test Results" | |
uses: codecov/codecov-action@v5 | |
with: | |
files: build/reports/jacoco/test/jacocoTestReport.xml |