-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (44 loc) · 1.36 KB
/
docs.yml
File metadata and controls
46 lines (44 loc) · 1.36 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
name: Documentation
on:
push:
branches:
- main
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: "3.x"
architecture: "x64"
- name: Install pip dependencies
run: pip install -r requirements.txt
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Get npm cache directory
id: npm-cache-dir
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v2
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Force HTTPs for Git
run: 'git config --global url."https://github.com/".insteadOf ssh://git@github.com/'
- name: Run (root) npm install
run: npm ci
working-directory: ./
- name: Crawl all licenses
run: npm run licenses
working-directory: ./
- name: Build and deploy docs
run: mkdocs gh-deploy --force
working-directory: ./