-
Notifications
You must be signed in to change notification settings - Fork 291
52 lines (47 loc) · 1.4 KB
/
update-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
name: Update docs
on:
push:
branches: [master]
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Download pandoc
uses: dsaltares/[email protected]
with:
repo: jgm/pandoc
version: tags/2.19.2
file: pandoc-2.19.2-1-amd64.deb
target: pandoc-2.19.2-1-amd64.deb
- name: Install and Build
run: |
sudo apt-get install -y libgl1-mesa-dev libglu-dev libxcursor-dev
sudo dpkg -i pandoc-2.19.2-1-amd64.deb
mkdir build
cd build
cmake ..
make html
- name: Checkout liballeg
uses: actions/checkout@v4
with:
repository: liballeg/liballeg.github.io
ssh-key: ${{ secrets.LIBALLEG_DEPLOY_KEY }}
ref: master
path: liballeg
- name: Deploy
run: |
cd liballeg
git config user.name "allebot"
git config user.email "[email protected]"
rm -R a5docs/trunk
cp -R ../build/docs/html/refman a5docs/trunk
git add a5docs/trunk
git diff-index --quiet HEAD || git commit -m "Automatic update from allegro5"
git push