Skip to content

Commit b73fdf1

Browse files
committed
Added the required cairo system dependency.
1 parent acf5929 commit b73fdf1

1 file changed

Lines changed: 26 additions & 20 deletions

File tree

.github/workflows/publish.yml

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,38 @@ name: Publish website
33
on:
44
push:
55
branches:
6-
- source # default branch with the source code of the website
6+
- source
77

88
jobs:
99
build:
10-
1110
runs-on: ubuntu-latest
12-
11+
1312
steps:
14-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v3
1514

16-
- name: Set up Python
17-
uses: actions/setup-python@v6
18-
with:
19-
python-version: '3.13'
15+
- name: Set up Python
16+
uses: actions/setup-python@v6
17+
with:
18+
python-version: '3.13'
2019

21-
- name: Install dependencies
22-
run: |
23-
pip install poetry lxml
24-
poetry install
25-
poetry run make html
26-
poetry run ghp-import output
20+
- name: Install system dependencies (cairo)
21+
run: |
22+
sudo apt-get update
23+
sudo apt-get install -y \
24+
libcairo2-dev \
25+
pkg-config
2726
28-
- name: Deploy
29-
uses: peaceiris/actions-gh-pages@v3
30-
with:
31-
github_token: ${{ secrets.GITHUB_TOKEN }}
32-
publish_dir: ./output
33-
publish_branch: master # deploying branch
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
pip install poetry lxml ghp-import
31+
poetry install
32+
poetry run make html
33+
poetry run ghp-import output
3434
35+
- name: Deploy
36+
uses: peaceiris/actions-gh-pages@v3
37+
with:
38+
github_token: ${{ secrets.GITHUB_TOKEN }}
39+
publish_dir: ./output
40+
publish_branch: master

0 commit comments

Comments
 (0)