-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 1011 Bytes
/
deploy-docs.yaml
File metadata and controls
40 lines (33 loc) · 1011 Bytes
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: Deploy plunit_assert Documentation
permissions:
contents: write
pages: write
id-token: write
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install SWI-Prolog
run: |
sudo apt-get update
sudo apt-get install -y swi-prolog
- name: Run tests
run: |
make test
- name: Generate documentation
if: success()
run: |
# swipl -g "load_files(plunit_assert), doc_save(., [format(html), doc_root(doc), title('PlUnit Assert Documentation')])" -t halt
swipl -g "load_files(plunit_assert), doc_save(., [format(html), doc_root('./docs'), title('API Documentation for plunit_assert')])" -t halt
- name: Deploy to GitHub Pages
if: success()
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs