-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (48 loc) · 1.77 KB
/
book.yml
File metadata and controls
54 lines (48 loc) · 1.77 KB
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: Book CI
on:
push:
branches: [main]
paths:
- pde-book/**
pull_request:
branches: [main]
jobs:
build_book:
runs-on: ubuntu-24.04
steps:
- name: Partial Clone
shell: bash
run: |
REPO="https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
git config --global user.email github-actions@github.com
git config --global user.name github-actions
git clone -q --filter=blob:none --no-checkout --depth=1 --sparse $REPO .
git sparse-checkout set pde-book
git checkout
- uses: rhaschke/docker-run-action@v5
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: ghcr.io
image: ghcr.io/cpp-review-dune/introductory-review/pde:latest
options: -v ${{github.workspace}}:/work
shell: bash
run: |
sudo pacman -Syu python-poetry texlive-latexextra texlive-fontsrecommended python-click python-jinja python-jsonschema python-linkify-it-py python-sphinx-copybutton python-sphinxcontrib-bibtex python-yaml --noconfirm >/dev/null 2>&1
sudo chown -R gitpod:gitpod /work
cd /work/pde-book
poetry config virtualenvs.in-project true
poetry config virtualenvs.options.system-site-packages true
poetry install
poetry run jb build .
- name: "Tar files"
run: |
sudo chown runner:docker -R .
mv pde-book/_build .
tar --zstd -cf Book.tar.zst _build
- uses: actions/upload-artifact@v4
with:
name: Book-artifact
path: Book.tar.zst
if-no-files-found: error
retention-days: 90