Adding more members #74
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: 2023 | |
TERM: xterm | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- 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 install-texlive | |
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 |