-
-
Notifications
You must be signed in to change notification settings - Fork 10
68 lines (59 loc) · 1.77 KB
/
mkdocs.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
name: Generate page
on:
workflow_dispatch:
repository_dispatch:
types:
- trigger-tutorial-sync
- trigger-document-sync
pull_request:
push:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout tutorial repo
uses: actions/checkout@v3
with:
repository: ${{ github.repository_owner }}/bpf-developer-tutorial
ref: main
path: tutorial
- name: Checkout main repository eunomia-bpf
uses: actions/checkout@v3
with:
repository: ${{ github.repository_owner }}/eunomia-bpf
ref: master
path: eunomia-bpf
- name: Checkout main repository GPTtrace
uses: actions/checkout@v3
with:
repository: ${{ github.repository_owner }}/GPTtrace
ref: main
path: GPTtrace
- name: Checkout main repository bpftime
uses: actions/checkout@v3
with:
repository: ${{ github.repository_owner }}/bpftime
ref: master
path: bpftime
- name: Change suffix and merge
run: |
./rename.sh
- uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install dependents
run: |
pip install mkdocs-material=="9.*" mkdocs-static-i18n=="0.53"
pip install "mkdocs-material[imaging]"
- name: Build page
if: github.event_name == 'pull_request'
run: |
mkdocs build -v
- name: Deploy page
if: |
github.event_name == 'repository_dispatch' ||
github.event_name == 'push' ||
github.event_name == 'workflow_dispatch'
run: |
mkdocs gh-deploy -m "{sha}" --force --ignore-version --no-history