Skip to content

chore(main): release 1.0.0-rc (#269) #32

chore(main): release 1.0.0-rc (#269)

chore(main): release 1.0.0-rc (#269) #32

Workflow file for this run

name: Deploy Dokka Docs
on:
push:
branches: ["main"]
workflow_dispatch:
jobs:
deploy-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Java
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '21'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
- name: Build Dokka HTML
run: ./gradlew dokkaGenerateHtml
- name: Determine deployment path
id: deploy-path
run: |
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
echo "path=." >> $GITHUB_OUTPUT
else
BRANCH_NAME=$(echo ${{ github.ref }} | sed 's/refs\/heads\///' | sed 's/\//-/g')
echo "path=$BRANCH_NAME" >> $GITHUB_OUTPUT
fi
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/library/docs
destination_dir: ${{ steps.deploy-path.outputs.path }}
keep_files: true # Important! Prevents deleting other directories