-
Notifications
You must be signed in to change notification settings - Fork 49
63 lines (49 loc) · 1.72 KB
/
Copy pathdeploy-docs.yml
File metadata and controls
63 lines (49 loc) · 1.72 KB
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
name: Deploy Site
on:
push:
branches: [main]
# Skip the docs/WASM redeploy when a push only touches files that don't
# affect the published site or the source: README, CHANGELOG, license,
# gitignore, media used only by GitHub-rendered README, etc.
# NOTE: changes under `docs/` and `mkdocs.yml` are intentionally NOT
# ignored — those are the docs-site sources and must trigger a rebuild.
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'
- 'SECURITY.md'
- 'ROADMAP.md'
- 'CODE_OF_CONDUCT.md'
- 'LICENSE'
- '.gitignore'
- 'media/**'
- '.github/ISSUE_TEMPLATE/**'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6.3.0
- uses: actions/setup-python@v7
with:
python-version: 3.11
- run: pip install mkdocs-material mkdocs-minify-plugin mkdocs-gen-files
- run: ./gradlew dokkaGenerateHtml
- run: mkdir -p docs/dokka && cp -r DrawBox/build/dokka/html/* docs/dokka/
- run: mkdocs build
- name: Build WASM sample
run: ./gradlew :webApp:wasmJsBrowserDistribution
- name: Stage WASM sample under /sample
run: |
mkdir -p site/sample
cp -r webApp/build/dist/wasmJs/productionExecutable/* site/sample/
- run: python docs/generate_sitemap.py site https://akshay2211.github.io/DrawBox/
- run: cat site/sitemap.xml
- uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site