Skip to content

Deploy Docs

Deploy Docs #1

Workflow file for this run

on:
workflow_call:
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy-docs:
runs-on: ubuntu-latest
if: github.repository == 'christiandeange/ozone'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
contents: read
pages: write
id-token: write
steps:
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
check-latest: true
- uses: actions/configure-pages@v4
- name: Build API Reference
run: ./gradlew dokkaHtmlCollector
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4