-
Notifications
You must be signed in to change notification settings - Fork 596
38 lines (38 loc) · 1.02 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
---
name: Build and deploy mkdocs to https://microsoft.github.io/code-with-engineering-playbook
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
actions: write
contents: write
deployments: write
issues: write
pages: write
pull-requests: write
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: "3.7"
architecture: "x64"
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install wheel
python3 -m pip install -r requirements-docs.txt
- name: Build site
run: mkdocs build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site