Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Fixed Github pages!

Fixed Github pages! #4

Workflow file for this run

name: Github pages
on:
workflow_dispatch:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build
run: ./gradlew dokkaHtml --stacktrace
- name: Create site dir
run: mkdir _site
- name: Copy javadoc
run: cp -r build/dokka/html _site/
- name: Upload Web page artifact
uses: actions/upload-pages-artifact@v3.0.1
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: github-pages
path: .
- name: Display structure of downloaded files
run: ls -R
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4