Skip to content

Commit 4aa8303

Browse files
committed
ci: add build and release workflow
- Create GitHub Actions workflow for building and releasing PDF - Configure workflow to run on push and manual dispatch - Set up Typst and compile main.typ to main.pdf - Upload PDF as artifact - Create GitHub release with PDF when a tag is pushed
1 parent d662909 commit 4aa8303

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/build.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build
2+
3+
on: [push, workflow_dispatch]
4+
5+
permissions:
6+
contents: write
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Typst
16+
uses: typst-community/setup-typst@v4
17+
18+
- name: Build
19+
run: typst compile --font-path ${{ github.workspace }}/fonts main.typ main.pdf
20+
21+
- name: Upload PDF file
22+
uses: actions/upload-artifact@v4
23+
with:
24+
name: Rendered
25+
path: main.pdf
26+
27+
- name: Release
28+
uses: softprops/action-gh-release@v2
29+
if: github.ref_type == 'tag'
30+
with:
31+
name: "${{ github.ref_name }}"
32+
files: main.pdf

0 commit comments

Comments
 (0)