Skip to content

Commit 9b4c28b

Browse files
authored
Move to Typst for CV (#2)
1 parent da3d39c commit 9b4c28b

File tree

6 files changed

+310
-191
lines changed

6 files changed

+310
-191
lines changed

.github/workflows/main.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,30 @@
1-
name: Build LaTeX document
2-
on: [push]
1+
name: Build Typst document
2+
on: [push, workflow_dispatch]
3+
4+
permissions:
5+
contents: write
6+
37
jobs:
4-
build_latex:
8+
build_typst_documents:
59
runs-on: ubuntu-latest
610
steps:
7-
- name: Set up Git repository
8-
uses: actions/checkout@v4
9-
- name: Compile LaTeX document
10-
uses: xu-cheng/latex-action@v3
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
- name: Typst
14+
uses: lvignoli/typst-action@main
1115
with:
12-
root_file: cv.tex
16+
source_file: cv.typ
1317
- name: Upload PDF file
1418
uses: actions/upload-artifact@v4
1519
with:
16-
name: PDF
20+
name: CV.pdf
1721
path: cv.pdf
22+
- name: Get current date
23+
id: date
24+
run: echo "DATE=$(date +%Y-%m-%d-%H:%M)" >> $GITHUB_ENV
25+
- name: Release
26+
uses: softprops/action-gh-release@v1
27+
if: github.ref_type == 'tag'
28+
with:
29+
name: "${{ github.ref_name }} — ${{ env.DATE }}"
30+
files: cv.pdf

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# CV
22

3-
CV written in LaTeX, compiled using github action.
3+
CV written in Typst, compiled using github action.

cv.pdf

-102 KB
Binary file not shown.

cv.tex

Lines changed: 0 additions & 181 deletions
This file was deleted.

0 commit comments

Comments
 (0)