-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (33 loc) · 1000 Bytes
/
publish.yaml
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
name: Publish HTML pages
on:
push:
branches: [master]
pull_request:
types: [opened, reopened, synchronize, labeled]
workflow_dispatch:
jobs:
publish-doc:
if: |
github.event_name == 'push' ||
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup mandoc
run: sudo apt install -y mandoc
- name: Build HTML pages
run: make html
- name: Publish HTML table of contents
run: cp index.html man3/
- name: Publish CSS
run: cp style.css man3/
- name: Publish HTML pages to GitHub Pages
uses: JamesIves/[email protected]
with:
folder: man3/
if: github.ref == 'refs/heads/master' &&
github.event_name != 'pull_request'