Skip to content

Commit

Permalink
feat: add publish docs action (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohnoor94 authored Mar 21, 2024
1 parent 27c9d0f commit 0d0c779
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/generate-docs-site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Generate and Deploy Reference Documentation

on:
push:
branches:
- mohnoor94/docs
- main

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

- uses: actions/upload-pages-artifact@v3
with:
name: dokka-artifact
path: './code/sdk/target/dokka'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 0d0c779

Please sign in to comment.