Skip to content

Deploy Reference Documentation #14

Deploy Reference Documentation

Deploy Reference Documentation #14

name: Generate and Deploy Reference Documentation
on:
workflow_dispatch:
# push:
# branches:
# - mohnoor94/docs
# - main
permissions:
id-token: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/configure-pages@v4
- uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: '21'
- run: mvn -f code/sdk dokka:dokka
- name: Print symlinks
run: find ./code/sdk/target/dokka -type l -print
- name: Remove symlinks
run: find ./code/sdk/target/dokka -type l -delete
- uses: actions/upload-artifact@v4
with:
name: github-pages
path: './code/sdk/target/dokka'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}