diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7c5112b..6d4227e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,21 +9,32 @@ jobs: contents: write steps: - name: Checkout master - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: yusancky/setup-typst@v2 + - uses: typst-community/setup-typst@v3 id: setup-typst - with: - version: 'v0.7.0' - name: Build PDF run: 'make all' - - name: Git Auto Commit - uses: stefanzweifel/git-auto-commit-action@v5.0.0 + # - name: Git Auto Commit + # uses: stefanzweifel/git-auto-commit-action@v5.0.0 + # with: + # commit_message: 'Update resume PDF' + # commit_options: '--no-verify --signoff' + # branch: 'main' + # file_pattern: '*.pdf' + # repository: . + - 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: - commit_message: 'Update resume PDF' - commit_options: '--no-verify --signoff' - branch: 'main' - file_pattern: '*.pdf' - repository: . + files: | + 个人简历.pdf + Resume.pdf \ No newline at end of file diff --git a/.gitignore b/.gitignore index 119a7a5..d1b0713 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,4 @@ # The PDF files which are only needed located in the root directory # We should not upload the PDF files in the template directory and src directory -template/*.pdf -src/*.pdf +*.pdf diff --git a/Resume_English.pdf b/Resume_English.pdf deleted file mode 100644 index 4518f93..0000000 Binary files a/Resume_English.pdf and /dev/null differ diff --git a/makefile b/makefile index 03dd48a..2b288e5 100644 --- a/makefile +++ b/makefile @@ -3,13 +3,17 @@ mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST))) cur_makefile_path := $(dir $(mkfile_path)) +all: clean zh en + clean: find . -name "*.pdf" | xargs rm -f zh: - typst compile --font-path ./fonts --root $(cur_makefile_path) src/chinese.typ 中文简历.pdf + typst compile --font-path ./fonts --root $(cur_makefile_path) src/chinese.typ 个人简历.pdf en: - typst compile --font-path ./fonts --root $(cur_makefile_path) src/english.typ Resume_English.pdf + typst compile --font-path ./fonts --root $(cur_makefile_path) src/english.typ Resume.pdf -all: clean zh en +build: all + +.PHONY: all \ No newline at end of file diff --git a/readme.md b/readme.md index 0c0c322..b0db81b 100644 --- a/readme.md +++ b/readme.md @@ -16,9 +16,7 @@ ### Github Actions -对于本地没有安装 Typst 的使用者,可以通过 Github Actions 实现自动部署。在每一次提交后,Github Actions 会自动运行 Typst 并将生成的 PDF Commit 到根目录中。 - -> Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository. +对于本地没有安装 Typst 的使用者,可以通过 Github Actions 实现自动部署。在每一次提交后,Github Actions 会自动运行 Typst 并将生成的 PDF 文件打包提供下载。 ## 使用方式 @@ -39,7 +37,11 @@ ### Github Actions -项目配置了自动部署的 Github Actions,可以在每次提交后自动运行 Typst (执行的命令是 `make all`)并将生成的 PDF Commit 到根目录中(对于 Fork 的子仓库,可能需要手动打开 Github Action 功能)。 +项目配置了自动部署的 Github Actions,可以在每次提交后自动运行 Typst (执行的命令是 `make all`)并将生成的 PDF 文件打包提供下载。可以在 `Actions` 标签页查看运行结果,并在对应运行时的 `Summary` 页面的 `Artifacts` 中下载生成的 PDF 文件压缩包。 + +### Github Release + +项目配置了 Github Release,对于正式版本的发布,使用 `git tag` 功能打上版本号标签,Github Actions 会自动将生成的 PDF 文件发布到 Github Release 页面。 ### Typst Web @@ -47,6 +49,5 @@ ## TBD -- [ ] 英文版示例与字体 +- [x] 英文版示例与字体 - [ ] 证件照插入的解决方案 - diff --git a/src/english.typ b/src/english.typ index e69de29..a94e948 100644 --- a/src/english.typ +++ b/src/english.typ @@ -0,0 +1,124 @@ + +// import from template +#import "../template/template.typ": *; +#show: template; + +#set text( + size: 12pt, + font: "Centaur" +) + +#init( + name: "San Zhang", + pic_path : "", +) + +#info( + color: rgb(0, 0, 0), + ( + icon: "/img/fa/fa-home.svg", + link: "https://zhangsan.io/", + content: "https://zhangsan.io/" + ), + ( + icon: fa_github, + link: "https://github.com/NorthSecond", + content: "NorthSecond" + ), + ( + icon: fa_email, + link: "mailto:San%20Zhang", + content: "me@zhangsan.io", + ), + ( + icon: fa_phone, + link: "tel:+86 133 3333 3333", + content: "+86 133 3333 3333", + ), +) + + +#resume_section("Education") + +#resume_item( + "XXX University", + "Master of Engineering", + "Computer Science and Technology", + "2024.09 -- 2027.07" +) + +#resume_item( + "XXXX University", + "Bachelor of Engineering", + "Software Engineering", + "2020.09 -- 2024.06" +) + +#resume_section("Publications") + +- [CVPR 2024]*You*, #lorem(5), and #lorem(1). "#lorem(10)" Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 2024. +- [CVPR 2023]*You*, #lorem(5), and #lorem(1). "#lorem(10)" Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 2023. + +#resume_section([Selected Projects]) + +#resume_item( + lorem(5), + "Computer Architecture", + lorem(8), + "2023.12 -- 2026.11" +) +#resume_desc( + "Description", + lorem(32) +) +#resume_desc( + "Contribution", + lorem(24) +) +#resume_desc( + "Achievement", + lorem(12) +) + +#resume_section([Experience]) + +#resume_item( + lorem(8), + "Student Assistant", + lorem(3), + "2021.11 -- 2024.06" +) +#resume_desc( + "Description", + lorem(24) +) + +#resume_section([Competitions and Awards]) + +#resume_desc( + "Professional Skills Competition", + lorem(8) +) +#resume_desc( + "Scholarship", + lorem(24) +) +#resume_desc( + "Other Administrative Awards", + lorem(12) +) + +#resume_section([Skills and Interests]) + +#resume_desc( + "Programming Languages", + [Proficient in C/C++; familiar with Rust, Python; have experience in Java, SQL, Matlab, TypeScript, Golang and some other languages.] +) +#resume_desc( + "Development Tools", + [Proficient in Git, Docker, Kubernetes, familiar with Jenkins, Travis CI, Circle CI, etc.] +) +#resume_desc( + "Interests", + [Machine Learning, Computer Vision, Compiler, System Programming, etc.] +) \ No newline at end of file diff --git "a/\344\270\255\346\226\207\347\256\200\345\216\206.pdf" "b/\344\270\255\346\226\207\347\256\200\345\216\206.pdf" deleted file mode 100644 index c7c31f0..0000000 Binary files "a/\344\270\255\346\226\207\347\256\200\345\216\206.pdf" and /dev/null differ