-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (47 loc) · 1.72 KB
/
build.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
name: Build
on: [push, pull_request]
jobs:
build-slides:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: |
# use ppa to get inkscape >= 1.0
sudo add-apt-repository ppa:inkscape.dev/stable
sudo apt-get update -q
sudo apt-get install -y inkscape dbus-x11
inkscape --version
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install TeXLive
run: |
pip install 'pygments>=2.4' https://github.com/maxnoe/texlive-batch-installation/archive/refs/tags/v0.3.0.tar.gz
install_texlive -p $HOME/texlive -t 2021 --collections="-a" --package-file tex-packages.txt --update
echo "$HOME/texlive/2021/bin/x86_64-linux" >> $GITHUB_PATH
# make sure we can use the fonts we installed with latex also with inkscape
mkdir -p $HOME/.local/share/fonts
ln -s $HOME/.local/texlive/2019/texmf-dist/fonts/opentype $HOME/.local/share/fonts
ln -s $HOME/.local/texlive/2019/texmf-dist/fonts/truetype $HOME/.local/share/fonts
fc-cache
fc-list 'Roboto'
- name: Build logos
run: |
dbus-run-session make -C logos
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
logos/build/*.png
logos/build/*.svg
logos/build/*.pdf
logos/build/pep-logos.zip