Skip to content

Commit bc297a4

Browse files
SiegeLordExSiegeLord
authored andcommitted
Add a workflow to update the trunk docs.
1 parent 6937491 commit bc297a4

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/update-docs.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Update docs
2+
on:
3+
push:
4+
branches: [master]
5+
permissions:
6+
contents: write
7+
jobs:
8+
build-and-deploy:
9+
concurrency: ci-${{ github.ref }}
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 1
16+
17+
- name: Download pandoc
18+
uses: dsaltares/[email protected]
19+
with:
20+
repo: jgm/pandoc
21+
version: tags/2.19.2
22+
file: pandoc-2.19.2-1-amd64.deb
23+
target: pandoc-2.19.2-1-amd64.deb
24+
25+
- name: Install and Build
26+
run: |
27+
sudo apt-get install -y libgl1-mesa-dev libglu-dev libxcursor-dev
28+
sudo dpkg -i pandoc-2.19.2-1-amd64.deb
29+
mkdir build
30+
cd build
31+
cmake ..
32+
make html
33+
34+
- name: Deploy
35+
uses: JamesIves/github-pages-deploy-action@v4
36+
with:
37+
folder: build/docs/html/refman
38+
target-folder: a5docs/trunk
39+
token: ${{ secrets.LIBALLEG_PAT }}
40+
branch: master
41+
repository-name: liballeg/liballeg.github.io
42+
commit-message: Automatic update from allegro5
43+
clean: true

0 commit comments

Comments
 (0)