Update pages.yml

This commit is contained in:
SPC-code 2024-06-19 18:35:26 +03:00 committed by GitHub
parent b4b3ecc8d7
commit 7d0dcd1b91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,23 +3,38 @@ name: Dokka publication
on: on:
push: push:
branches: [ main ] branches: [ main ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs: jobs:
build: deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 40
steps: steps:
- uses: actions/checkout@v4.1.7 - name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 17 - name: Set up JDK 17
uses: actions/setup-java@v4.2.1 uses: actions/setup-java@v4
with: with:
java-version: 17 java-version: 17
distribution: liberica distribution: liberica
- name: execute build - name: execute build
uses: gradle/gradle-build-action@v3.4.2 uses: gradle/gradle-build-action@v3
with: with:
arguments: dokkaHtmlMultiModule arguments: dokkaHtmlMultiModule
- uses: JamesIves/github-pages-deploy-action@4.6.1 - name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with: with:
branch: gh-pages # Upload entire repository
folder: build/dokka/htmlMultiModule path: 'build/dokka/htmlMultiModule'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4