commit eb4bf28b67678783564843e264478dd861bd04d4 parent 4bf2ee6406f1a14cb645a2971441240e6b13fc27 Author: minerva-jupiter <ryouturn@gmail.com> Date: Thu, 14 Aug 2025 10:50:27 +0000 add releasebuild.yaml Diffstat:
| A | .github/workflows/ReleaseBuild.yaml | | | 27 | +++++++++++++++++++++++++++ |
1 file changed, 27 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/ReleaseBuild.yaml b/.github/workflows/ReleaseBuild.yaml @@ -0,0 +1,27 @@ +name: Typst Compile when push + +on: + push: + tags: + - '*.*.*' + +jobs: + PushBuild: + name: PushBuild + runs-on: ubuntu-latest + steps: + - name: Download fonts to ./fonts + run: mkdir fonts && cd fonts && wget "https://github.com/googlefonts/noto-cjk/raw/main/Sans/Variable/TTF/NotoSansCJKjp-VF.ttf" && cd + - name: Set up Git repo + uses: actions/checkout@v2 + - name: compile typst with docker + run: sudo docker run --rm --volume ./:/home/ ghcr.io/typst/typst:latest compile --font-path /home/fonts /home/test.typ + - name: Create Release & upload asset + id: create_release-upload_assets + uses: softprops/action-gh-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + files: ./*.pdf + draft: true + prerelease: false