-
Notifications
You must be signed in to change notification settings - Fork 9
33 lines (31 loc) · 871 Bytes
/
build.yml
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
name: Build and Commit PDF
on: [push]
jobs:
build:
name: Build PDF
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout master
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: install fonts
run: sudo apt-get install -y fonts-noto-cjk fonts-noto-cjk-extra
- uses: typst-community/setup-typst@v3
id: setup-typst
- name: Build PDF
run: make all
- uses: actions/upload-artifact@v4
with:
name: resume-pdf
path: |
个人简历.pdf
Resume.pdf
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
*.pdf