-
Notifications
You must be signed in to change notification settings - Fork 14
54 lines (48 loc) · 1.41 KB
/
build-docs.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
name: Convert markdown docs to html
on:
push:
branches: ["master", "develop"]
paths:
- proposal/**
- .github/workflows/build-docs.yml
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
container:
image: cppalliance/wg21:latest
options: --user 1001
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build docs
run: |
set -xe
# list_of_files="draft P3390R0"
list_of_files="draft"
cd proposal
git clone https://github.com/mpark/wg21.git
echo "include wg21/Makefile" > Makefile
for file in $list_of_files; do
make ${file}.html
done
cp generated/* ../docs/
cd ..
git config --global user.name 'commitbot'
git config --global user.email '[email protected]'
git add docs/* || true
git commit -m "Docs: update from proposal/ md files" || true
git push
- name: Trigger Publish Workflow
uses: actions/github-script@v7
with:
script: |
github.rest.repos.createDispatchEvent({
owner: context.repo.owner,
repo: context.repo.repo,
event_type: 'publish-trigger',
});