Skip to content

Commit 9e4da8b

Browse files
committed
* 'source' of https://github.com/monarc-project/monarc-project.github.io: Added the required cairo system dependency. Added the missing package. Update Python version in GitHub Actions workflow Updated the dependencies.
2 parents 3f02b74 + b73fdf1 commit 9e4da8b

3 files changed

Lines changed: 1114 additions & 960 deletions

File tree

.github/workflows/publish.yml

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +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
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v6
17+
with:
18+
python-version: '3.13'
1519

16-
- name: Set up Python 3.x
17-
uses: actions/setup-python@v4
18-
with:
19-
python-version: '3.x'
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
2026
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
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
2734
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
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)