forked from alandefreitas/matplotplusplus
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (50 loc) 路 1.55 KB
/
Copy pathdocs.yml
File metadata and controls
52 lines (50 loc) 路 1.55 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
47
48
49
50
51
52
name: Docs Generator
on: push
jobs:
generateDOC:
name: Docs Generator
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Update Table of Contents
uses: technote-space/toc-generator@v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAX_HEADER_LEVEL: 3
FOLDING: true
- name: Update Contributors
uses: akhilmhdh/contributors-readme-action@v2.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
image_size: 100
columns_per_row: 6
- name: Download mdsplit
uses: carlosperate/download-file-action@v1.0.3
id: download-mdsplit
with:
file-url: 'https://github.com/alandefreitas/mdsplit/releases/download/v0.0.1/Executable.Linux.zip'
file-name: 'mdsplit.zip'
location: '.'
- name: Unzip mdsplit
run: |
unzip mdsplit.zip
rm -f mdsplit.zip
sudo chmod +x mdsplit
ls
- name: Generate Docs
run: ./mdsplit -r alandefreitas/matplotplusplus
- name: Commit Docs
run: |
git fetch
git add docs
git config --local user.email "alandefreitas@gmail.com"
git config --local user.name "Alan R R Freitas"
git commit -m "Update Docs" -a
continue-on-error: true
- name: Push changes
uses: ad-m/github-push-action@master
continue-on-error: true
if: ${{ success() }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}