-
Notifications
You must be signed in to change notification settings - Fork 14
54 lines (46 loc) · 1.57 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
name: CI
on: [push, pull_request]
env:
TEXLIVE_VERSION: 2022
TERM: xterm
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Setup
run: |
# install current version of inkscape
sudo add-apt-repository -y ppa:inkscape.dev/stable
sudo apt-get update -q
# cluttered the log
sudo apt-get install curl -y
inkscape --version
# install texlive
pip install https://github.com/MaxNoe/texlive-batch-installation/archive/main.tar.gz
install_texlive -t $TEXLIVE_VERSION --collection='-a' --package-file tex-packages.txt -p $HOME/.local/texlive -v
echo "$HOME/.local/texlive/$TEXLIVE_VERSION/bin/x86_64-linux" >> $GITHUB_PATH
rm -rf ~/.local/share/recently-used.xbel
- name: Build
run: |
python create_logos.py -n 2
- name: Build Page
# only run on main
if: ${{ github.ref == 'refs/heads/main' }}
run: |
python create_page.py
zip -r ./s4f_all_logos.zip ./s4f_all_logos -x '*.zip'
mv s4f_all_logos.zip s4f_all_logos
find s4f_all_logos -name "*.zip" -exec mv {} build \;
touch build/.nojekyll
- name: Deploy to gihub pages
# only run on main
if: ${{ github.ref == 'refs/heads/main' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build
single-commit: true