Try using ubuntu 20 #58
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
env: | |
TEXLIVE_VERSION: 2022 | |
TERM: xterm | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
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 | |
sudo apt-get install inkscape -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 |