forked from intel-retail/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (49 loc) · 1.62 KB
/
github-pages.yml
File metadata and controls
53 lines (49 loc) · 1.62 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
name: Update GH Pages
on:
workflow_dispatch:
push:
branches:
- main
paths:
- docs_src/**
# pull_request:
# The branches below must be a subset of the branches above
# branches: [ "main" ]
permissions:
contents: write
pages: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
path: documentation
- uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Create /apis Directory
run: mkdir -p ./apis
- name: Download Performance Tools
run: wget -P ./apis https://github.com/intel-retail/performance-tools/archive/refs/heads/main.zip
- name: Unzip Performance Tools
run: unzip ./apis/main.zip -d ./apis
- name: Move Benchmark Scripts
run: |
mkdir -p ./benchmark-scripts
mv ./apis/performance-tools-main/benchmark-scripts/* ./benchmark-scripts
- name: Install mkdocs
run: |
pip install mkdocs "mkdocs-material>=8.2" "mkdocs-htmlproofer-plugin>=0.8"
pip install "mkdocs-swagger-ui-tag" "mkdocstrings>=0.24.3" "mkdocstrings-python>=1.9.2"
- name: Configure Git user
run: |
cd documentation
git config --local user.email "github-actions[bot]"
git config --local user.name "github-actions[bot]@users.noreply.github.com"
- name: Build Site with MkDocs
run: mkdocs build --config-file documentation/mkdocs.yml
- name: Deploy
run: |
cd documentation
mkdocs gh-deploy --force --clean --verbose --config-file mkdocs.yml