kotlin-sdk/.github/workflows/apidocs.yaml
Pavel Gorgulov 1fd03912d6
Remove docs command from workflow (#269)
Remove `docs:clean` and `docs:dokkaGenerate` from apidocs workflow

## Motivation and Context
fix build and deploy docs to github pages 

## Breaking Changes
no

## Types of changes
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update

## Checklist
- [x] I have read the [MCP
Documentation](https://modelcontextprotocol.io)
- [x] My code follows the repository's style guidelines
- [x] New and existing tests pass locally
- [ ] I have added appropriate error handling
- [x] I have added or updated documentation as needed
2025-09-15 21:29:19 +03:00

49 lines
1.2 KiB
YAML

name: Build and Publish API Docs to GitHub Pages
on:
release:
types:
- published
# Allow running this workflow manually from the Actions tab
workflow_dispatch:
jobs:
deploy:
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'temurin'
cache: gradle
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Generate Dokka Site
run: |-
./gradlew clean dokkaGenerate
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: build/dokka/html
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4