-
Notifications
You must be signed in to change notification settings - Fork 55
77 lines (77 loc) · 1.93 KB
/
documentation.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
69
70
71
72
73
74
75
76
77
name: Publish Documentation
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build_rustdoc:
name: Build rustdoc docs
runs-on:
- self-hosted
- v3
container:
image: 134.28.57.223:5000/hulk:1.78.0
options: --user=1000:1000
steps:
- uses: actions/checkout@v4
- name: Build docs
run: cargo doc --no-deps --workspace --document-private-items
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: rustdoc
path: target/doc
build_mkdocs:
name: Build mkdocs
runs-on:
- self-hosted
- v3
container:
image: 134.28.57.223:5000/hulk:1.78.0
options: --user=1000:1000
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Build docs
run: mkdocs build --strict
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: mkdocs
path: site
deploy:
name: Deploy to GitHub Pages
needs: [build_rustdoc, build_mkdocs]
if: github.repository_owner == 'HULKs'
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on:
- self-hosted
- v3
container:
image: 134.28.57.223:5000/hulk:1.78.0
options: --user=1000:1000
steps:
- name: Download mkdocs artifact
uses: actions/download-artifact@v4
with:
name: mkdocs
path: ${{ runner.temp }}/page
- name: Download rustdoc artifact
uses: actions/download-artifact@v4
with:
name: rustdoc
path: ${{ runner.temp }}/page/docs
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: ${{ runner.temp }}/page
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4