add[slides]: slides 1 first draft. #17
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: Compile and Commit documentation file. | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Setup Typst | |
uses: typst-community/setup-typst@v3 | |
- name: Create fonts directory in the repository | |
run: mkdir -p $GITHUB_WORKSPACE/fonts | |
- name: Download and Extract Fonts | |
run: | | |
wget -P $GITHUB_WORKSPACE/fonts https://github.com/firamath/firamath/releases/download/v0.4-beta-3/firamath-otf.zip | |
unzip $GITHUB_WORKSPACE/fonts/firamath-otf.zip -d $GITHUB_WORKSPACE/fonts/firamath | |
wget -P $GITHUB_WORKSPACE/fonts https://brailleinstitute.org/wp-content/uploads/atkinson-hyperlegible-font/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514.zip | |
unzip $GITHUB_WORKSPACE/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514.zip -d $GITHUB_WORKSPACE/fonts/atkinsonhyperlegible | |
wget -P $GITHUB_WORKSPACE/fonts https://github.com/stipub/stixfonts/archive/refs/tags/v2.13b171.zip | |
unzip $GITHUB_WORKSPACE/fonts/v2.13b171.zip -d $GITHUB_WORKSPACE/fonts/stix2 | |
- name: Compile Typst to PDF | |
run: python3 .github/workflows/compile.py | |
- name: Remove Fonts from Repository | |
run: rm -rf $GITHUB_WORKSPACE/fonts | |
- name: Commit compiled PDFs | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: '[deploy]: compile sources to PDF' | |
file_pattern: '*.pdf' |