-
Notifications
You must be signed in to change notification settings - Fork 21
40 lines (34 loc) · 1.03 KB
/
publishdocs.yaml
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
name: Publish docs via GitHub Pages
on:
push:
branches:
- master
- linkml
jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
# - name: Install the required python packages
# run: python -m pip install linkml mkdocs mkdocs-material mkdocs-mermaid2-plugin
#
# - name: Other installations
# run: |
# sudo apt-get update
# sudo apt-get install -y build-essential git wget curl
- name: generating linkml docs
run: |
# git config --local user.email "[email protected]"
# git config --local user.name "GitHub Action"
gen-doc -d docs/linkml linkml-schema/reproschema.yaml
# mkdocs gh-deploy --force
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}