forked from JetBrains/Exposed
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (47 loc) · 1.53 KB
/
docs-workflow.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Build documentation website
on: [workflow_dispatch]
permissions:
id-token: write
env:
INSTANCE: 'Writerside/hi'
ARTIFACT: 'webHelpHI2-all.zip'
DOCKER_VERSION: '241.16003'
jobs:
build:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build docs using Writerside Docker builder
uses: JetBrains/writerside-github-action@v4
with:
instance: ${{ env.INSTANCE }}
artifact: ${{ env.ARTIFACT }}
docker-version: ${{ env.DOCKER_VERSION }}
location: documentation-website
- name: Remove docs folder
run: rm -rf docs
- name: Unzip artifact
run: unzip -O UTF-8 -qq 'artifacts/${{ env.ARTIFACT }}' -d docs
- name: Revert logos
run: git checkout docs/logo-dark.png docs/logo-light.png docs/site.webmanifest
- name: Remove artifacts
run: rm -rf artifacts
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '17'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build API documentation with Dokka
run: ./gradlew dokkaHtmlMultiModule
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
branch: documentation-website
title: 'docs: Update documentation website'
commit-message: Update documentation website