feat: 根据页面宽度调整表格 #26
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: tutorial::ci | |
on: push | |
jobs: | |
render_pdf: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: typst-community/setup-typst@v3 | |
- run: git submodule update --init --recursive | |
- name: Download & install shiroa | |
run: | | |
curl -L https://github.com/Myriad-Dreamin/shiroa/releases/download/v0.2.0-nightly5/shiroa-x86_64-unknown-linux-gnu.tar.gz | tar -xvz | |
chmod +x shiroa-x86_64-unknown-linux-gnu/bin/shiroa | |
sudo cp shiroa-x86_64-unknown-linux-gnu/bin/shiroa /usr/bin/shiroa | |
- name: Build Book | |
run: | | |
shiroa build --font-path ./assets/typst-fonts/ --font-path ./assets/fonts/ --path-to-root /tutorial/ -w . src | |
- run: typst compile --root . --font-path ./assets/typst-fonts/ --font-path ./assets/fonts/ ./src/ebook.typ | |
- uses: actions/upload-artifact@v4 | |
id: artifact-upload-step | |
with: | |
name: ebook | |
path: src/ebook.pdf | |
- run: echo 'Artifact URL is ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts/${{ steps.artifact-upload-step.outputs.artifact-id }}' |