-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (35 loc) · 1.12 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build thesis
on:
pull_request:
permissions:
contents: write
pull-requests: write
jobs:
build_release_thesis:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: '0'
lfs: true
- uses: typst-community/setup-typst@v3
- run: typst compile ./template/thesis.typ thesis.pdf --root "./"
# NOTE: Update proposal.typ and comment out the following line if you want to build the proposal.
# - run: typst compile proposal.typ proposal.pdf
- name: Upload Release Asset - Assignment
id: upload
uses: actions/upload-artifact@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
path: ./thesis.pdf
name: thesis.pdf
retention-days: 5
- name: Comment PR Link
uses: thollander/actions-comment-pull-request@v3
with:
reactions: eyes, rocket
comment_tag: file-upload
message: |
Thank you for your contribution. Review ready at: ${{ steps.upload.outputs.artifact-url }}