-
Notifications
You must be signed in to change notification settings - Fork 13
67 lines (57 loc) · 1.85 KB
/
makefile.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Generation with pandoc
run-name: ${{ github.actor }} is generating new slides
on: [push]
env:
PANDOC_VERSION: 3.1.8
jobs:
build:
runs-on: ubuntu-22.04
concurrency:
group: ci-${{ github.ref_name }}
cancel-in-progress: true
steps:
- run: echo "🎉 Job triggered by a ${{ github.event_name }}, running on ${{ runner.os }}"
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The branch ${{ github.ref }} from ${{ github.repository }} has been cloned to the runner."
- name: Update apt
run: >-
sudo apt-get update -q
- name: Upgrade apt
run: >-
sudo apt-get upgrade -qy
- name: Install dependencies
run: >-
sudo apt-get install -qy
fonts-inconsolata
fonts-linuxlibertine
fonts-noto
fonts-texgyre
latexmk
lmodern
make
texlive-fonts-extra
texlive-fonts-recommended
texlive-lang-french
texlive-latex-base
texlive-latex-recommended
texlive-luatex
texlive-plain-generic
texlive-science
wget
- run: |
wget https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-1-amd64.deb -O pandoc.deb
sudo dpkg -i pandoc.deb
- name: Run the Makefile
run: make slides pdfs # book is not ready
- name: Add index
run: |
cp ./templates/index.html build/
cp ./templates/style.css build/
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
if: github.ref == 'refs/heads/master'
with:
folder: build # The folder the action should deploy.
branch: gh-pages
- run: echo "🍏 This job's status is ${{ job.status }}."