-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocumenting.yml
34 lines (32 loc) · 1011 Bytes
/
documenting.yml
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
name: Documenting
on: [push]
jobs:
documenting:
runs-on: ubuntu-latest
steps:
- name: Install SWI-Prolog backend
uses: logtalk-actions/setup-swi-prolog@master
with:
swi-prolog-branch: stable
swi-prolog-version: latest
- name: Install Logtalk
uses: logtalk-actions/setup-logtalk@master
with:
logtalk-version: 3.31.0
- name: Checkout Logtalk application to be tested
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Generate the application documentation
run: |
swilgt -g "{loader,lgtdoc(loader)},lgtdoc::directory('.')" -t halt
cd xml_docs
printf 'n\nAPI documentation\nJohn Doe\n\n\n' | lgt2rst -s -t "API documentation"
make html
cd _build/html
zip -r ../../../docs.zip *
- name: Upload documentation
uses: actions/upload-artifact@master
with:
name: docs
path: docs.zip