-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (36 loc) · 1.05 KB
/
publish-documentation.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
35
36
37
---
name: publish documentation
# description: If changes are made (e.g. by build action) in relevant files, generate new documentation
on:
push:
branches: [main]
paths:
- 'README-source.adoc'
- '*/README-source.adoc'
- 'docs/Makefile'
- 'docs/algebras.dot.m4'
- '.github/workflows/publish-documentation.yml'
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
container: asciidoctor/docker-asciidoctor:latest
steps:
- uses: actions/checkout@v4
with:
set-safe-directory: true
- name: Create html from adoc
run: |
echo "PWD" $(pwd)
git config --global --add safe.directory $(pwd)
cd docs
apk add graphviz m4
make clean index.html
git status
git pull
- name: Commit generated dot file if it changed
uses: EndBug/add-and-commit@v9
with:
message: Automated update of documentation https://mihxil.github.io/math/
add: docs
if: ${{ github.event_name == 'push' }}