ReleaseBuild.yaml (1032B)
1 name: Typst Compile when version released 2 3 on: 4 push: 5 tags: 6 - '*.*.*' 7 8 jobs: 9 PushBuild: 10 name: PushBuild 11 runs-on: ubuntu-latest 12 steps: 13 - name: Set up Git repo 14 uses: actions/checkout@v2 15 - name: Download fonts to ./fonts 16 run: mkdir fonts && cd fonts && curl -L -o NotoSansJP-Regular.otf https://github.com/googlefonts/noto-cjk/raw/main/Sans/OTF/Japanese/NotoSansCJKjp-Regular.otf && curl -L -o NotoSerifJP-Regular.otf https://github.com/notofonts/noto-cjk/blob/main/Serif/OTF/Japanese/NotoSerifCJKjp-Regular.otf && cd .. && tree . 17 - name: compile typst with docker 18 run: sudo docker run --rm --volume ./:/home/ ghcr.io/typst/typst:latest compile --font-path /home/fonts /home/test.typ 19 - name: Create Release & upload asset 20 id: create_release-upload_assets 21 uses: softprops/action-gh-release@v1 22 env: 23 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 24 with: 25 files: ./*.pdf 26 draft: true 27 prerelease: false