Skip to content

Commit

Permalink
add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Chwiggy committed Apr 19, 2024
1 parent 2e1430f commit b85ac56
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build Typst document
on:
push:
tags:
- '*'

permissions:
contents: write

jobs:

build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Typst Compiler
# You may pin to the exact commit or the version.
# uses: ammar-ahmed22/compile-typst-action@7e840aaaeacb7f3f4b6724776148f65a0d4aab04
uses: ammar-ahmed22/compile-typst-action@v1.0.2
with:
# Space separated list of paths to the .typ files
source_paths: src/thesis.typ
# Space separated list of output paths (must be .pdf) (defaults to the same name as the source_paths)
output_paths: thesis.pdf
- name: Upload files to a GitHub release
# You may pin to the exact commit or the version.
# uses: svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd
uses: svenstaro/upload-release-action@2.9.0
with:
# Local file to upload.
file: thesis.pdf
# Tag to use as a release.
prerelease: "false"
# Mark the release the latest release for the repository. Defaults to "true".

0 comments on commit b85ac56

Please sign in to comment.