ci: switch typst action (#2) #2
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: build documents | |
on: | |
push: | |
branches: main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: typst-community/setup-typst@v4 | |
- name: get images | |
run: | | |
./download-images.sh | |
- name: build pdfs | |
run: | | |
typst c chap1.typ | |
typst c chap2.typ | |
typst c chap3.typ | |
typst c chap4.typ | |
- name: upload pdfs | |
uses: actions/upload-artifact@v4 | |
# always upload, even if building fails | |
if: "success() || failure()" | |
with: | |
name: promi-pdfs | |
path: "*.pdf" |