-
Notifications
You must be signed in to change notification settings - Fork 10
68 lines (52 loc) · 1.74 KB
/
docs.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
61
62
63
64
65
66
67
68
on:
push:
branches: [ master ]
concurrency:
group: "docs"
cancel-in-progress: true
permissions:
contents: read
pages: write
id-token: write
jobs:
docs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
check-latest: true
java-version: 21
cache: 'gradle'
- name: Validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Create local properties
env:
LOCAL_PROPERTIES: ${{ secrets.LOCAL_PROPERTIES }}
run: echo "$LOCAL_PROPERTIES" | base64 --decode > local.properties
- name: Update docs/README.md
run: cp ./README.md ./docs/README.md
- name: Generate docs
run: ./gradlew :dokkaHtmlMultiModule --no-configuration-cache
- name: Move docs to the parent docs dir
run: cp -r ./build/dokka/htmlMultiModule/ ./docs/javadocs/
- name: Create sample app distributable
run: ./gradlew wasmJsBrowserDistribution --no-configuration-cache
- name: Move assembled sample app to docs folder
run: cp -r ./sample/build/dist/wasmJs/productionExecutable/ ./docs/sample/
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload pages
uses: actions/upload-pages-artifact@v1
with:
path: './docs/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1