Skip to content

Commit 998bcfe

Browse files
committed
Update mdsplit workflow to use mkdocs
1 parent c93bf7a commit 998bcfe

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

.github/workflows/docs.yml

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ on: push
55
jobs:
66
generateDOC:
77
name: Docs Generator
8-
runs-on: ubuntu-latest
8+
runs-on: ubuntu-20.04
99
steps:
1010
- uses: actions/checkout@v2
11-
- name: Update Table of Contents
11+
- name: Generate Table of Contents
1212
uses: technote-space/toc-generator@v2
1313
with:
1414
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -25,7 +25,7 @@ jobs:
2525
uses: carlosperate/[email protected]
2626
id: download-mdsplit
2727
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'
2929
file-name: 'mdsplit.zip'
3030
location: '.'
3131
- name: Unzip mdsplit
@@ -34,19 +34,15 @@ jobs:
3434
rm -f mdsplit.zip
3535
sudo chmod +x mdsplit
3636
ls
37-
- name: Generate Docs
37+
- name: Generate Documentation Source
3838
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
5141
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

Comments
 (0)