@@ -5,10 +5,10 @@ on: push
5
5
jobs :
6
6
generateDOC :
7
7
name : Docs Generator
8
- runs-on : ubuntu-latest
8
+ runs-on : ubuntu-20.04
9
9
steps :
10
10
- uses : actions/checkout@v2
11
- - name : Update Table of Contents
11
+ - name : Generate Table of Contents
12
12
uses : technote-space/toc-generator@v2
13
13
with :
14
14
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25
25
uses :
carlosperate/[email protected]
26
26
id : download-mdsplit
27
27
with :
28
- file-url : ' https://github.com/alandefreitas/mdsplit/releases/download/v0.0 .1/Executable.Linux.zip'
28
+ file-url : ' https://github.com/alandefreitas/mdsplit/releases/download/v0.1 .1/Executable.Linux.zip'
29
29
file-name : ' mdsplit.zip'
30
30
location : ' .'
31
31
- name : Unzip mdsplit
@@ -34,19 +34,15 @@ jobs:
34
34
rm -f mdsplit.zip
35
35
sudo chmod +x mdsplit
36
36
ls
37
- - name : Generate Docs
37
+ - name : Generate Documentation Source
38
38
run : ./mdsplit -r alandefreitas/matplotplusplus
39
- - name : Commit Docs
40
- run : |
41
- git fetch
42
- git add docs
43
- git config --local user.email "[email protected] "
44
- git config --local user.name "Alan R R Freitas"
45
- git commit -m "Update Docs" -a
46
- continue-on-error : true
47
- - name : Push changes
48
- uses : ad-m/github-push-action@master
49
- continue-on-error : true
50
- if : ${{ success() }}
39
+ - name : Setup Python
40
+ uses : actions/setup-python@v2
51
41
with :
52
- github_token : ${{ secrets.GITHUB_TOKEN }}
42
+ python-version : 3.x
43
+ - name : Install Mkdocs Material
44
+ run : pip install mkdocs-material
45
+ - name : Install Awesome Pages Plugin # https://github.com/lukasgeiter/mkdocs-awesome-pages-plugin
46
+ run : pip install mkdocs-awesome-pages-plugin
47
+ - name : Deploy mkdocs to gh-pages branch
48
+ run : mkdocs gh-deploy --force
0 commit comments