-
Notifications
You must be signed in to change notification settings - Fork 31
32 lines (29 loc) · 966 Bytes
/
deploy.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
# documentation: https://help.github.com/en/articles/workflow-syntax-for-github-actions
name: deploy documentation (only on push to main branch)
on:
push:
branches: main
# Declare default permissions as read only.
permissions: read-all
jobs:
build:
runs-on: ubuntu-22.04
permissions:
# Need to be able to write to the deploy branch
contents: write
steps:
- name: checkout
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
with:
fetch-depth: 0 # need to fetch all history to ensure correct Git revision dates in docs
- name: set up Python
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # v4.3.0
with:
python-version: '3.10'
- name: install mkdocs + plugins
run: |
pip install -r requirements.txt
pip list | grep mkdocs
mkdocs --version
- name: build tutorial
run: make test && make deploy