Update action #51
This file contains hidden or 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: Render paper.pdf | |
| on: push | |
| jobs: | |
| render-paper: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: typst-community/setup-typst@v4 | |
| - name: Get fonts | |
| run: | | |
| mkdir fonts | |
| wget https://mirrors.ctan.org/fonts/newcomputermodern/otf/NewCM10-Book.otf -P fonts/ | |
| wget https://mirrors.ctan.org/fonts/newcomputermodern/otf/NewCM10-BookItalic.otf -P fonts/ | |
| wget https://github.com/adobe-fonts/source-han-serif/releases/download/2.002R/09_SourceHanSerifSC.zip | |
| unzip 09_SourceHanSerifSC.zip | |
| mv OTF/SimplifiedChinese/* fonts | |
| wget https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/fonts/KaTeX_Caligraphic-Regular.ttf | |
| mv KaTeX_Caligraphic-Regular.ttf fonts | |
| wget https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/fonts/KaTeX_Caligraphic-Bold.ttf | |
| mv KaTeX_Caligraphic-Bold.ttf fonts | |
| - run: typst compile main.typ model.pdf --font-path ./fonts/ | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: model | |
| path: model.pdf |