forked from hpcugent/vsc_user_docs
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 966 Bytes
/
build.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
---
# documentation: https://help.github.com/en/articles/workflow-syntax-for-github-actions
name: build docs (to test changes in PRs)
on: [push, pull_request]
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: install required Python packages
run: |
pip install -r requirements.txt
cd custom_plugin && pip install . && cd -
cd computational_macros && pip install . && cd -
python3 -m pip list
mkdocs --version
# equivalent of 'mkdocs build', but need to build all flavors of the docs (different site/OS)
- name: build docs
run: |
python3 build.py
find build -type f