-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (35 loc) · 1.2 KB
/
publish-docs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Publish documentation
on:
push:
branches: ["main"]
workflow_dispatch:
env:
INSTANCE: 'Writerside/doc'
ARTIFACT: 'webHelpDOC2-all.zip'
DOCKER_VERSION: '241.16003'
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
with:
fetch-depth: 0
- name: Prepare static content
run: |
export JAVA_HOME=$JAVA_HOME_21_X64 # Remove when ubuntu-latest updates to Java 21
./gradlew dokkatooGeneratePublicationHtml
mkdir -p build/static
cp -rf build/dokka/html build/static/kdoc
- name: Deploy Kdoc to github pages
uses: JamesIves/github-pages-deploy-action@5c6e9e9f3672ce8fd37b9856193d2a537941e66c #v4.6.1
with:
branch: gh-pages # The branch the action should deploy to.
folder: build/static # The folder the action should deploy.
- name: Save artifact with build results
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 #v4.3.3
with:
name: docs
path: |
artifacts/${{ env.ARTIFACT }}
retention-days: 7