2024-06-19 18:14:59 +03:00
|
|
|
name: Dokka publication
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-06-19 18:22:51 +03:00
|
|
|
branches: [ main ]
|
2024-06-19 18:35:26 +03:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
pages: write
|
|
|
|
id-token: write
|
2024-06-19 18:14:59 +03:00
|
|
|
|
|
|
|
jobs:
|
2024-06-19 18:35:26 +03:00
|
|
|
deploy:
|
|
|
|
environment:
|
|
|
|
name: github-pages
|
|
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
2024-06-19 18:14:59 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-06-19 18:35:26 +03:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
2024-06-19 18:22:51 +03:00
|
|
|
- name: Set up JDK 17
|
2024-06-19 18:35:26 +03:00
|
|
|
uses: actions/setup-java@v4
|
2024-06-19 18:14:59 +03:00
|
|
|
with:
|
2024-06-19 18:22:51 +03:00
|
|
|
java-version: 17
|
2024-06-19 18:14:59 +03:00
|
|
|
distribution: liberica
|
|
|
|
- name: execute build
|
2024-06-19 18:35:26 +03:00
|
|
|
uses: gradle/gradle-build-action@v3
|
2024-06-19 18:14:59 +03:00
|
|
|
with:
|
|
|
|
arguments: dokkaHtmlMultiModule
|
2024-06-19 18:35:26 +03:00
|
|
|
- name: Setup Pages
|
|
|
|
uses: actions/configure-pages@v5
|
|
|
|
- name: Upload artifact
|
|
|
|
uses: actions/upload-pages-artifact@v3
|
2024-06-19 18:14:59 +03:00
|
|
|
with:
|
2024-06-19 18:35:26 +03:00
|
|
|
# Upload entire repository
|
|
|
|
path: 'build/dokka/htmlMultiModule'
|
|
|
|
- name: Deploy to GitHub Pages
|
|
|
|
id: deployment
|
|
|
|
uses: actions/deploy-pages@v4
|