Skip to content

Commit

Permalink
Separate secrets informations
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo1003 committed Oct 22, 2024
1 parent 2436ce7 commit 6b4342c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ jobs:
- name: Print supported fonts
run: typst fonts
- name: Build resume
run: typst compile resume.typ
run: |
touch secrets.toml
typst compile resume.typ
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
resume.pdf
secrets.toml
3 changes: 2 additions & 1 deletion resume.typ
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#import "template.typ": *
#import "secrets.typ": secret

#show: resume.with(
author: (
firstname: "Shao-Fu",
lastname: "Chen",
chinesename: "陳少甫",
email: "[email protected]",
phone: "<REDACTED>",
phone: secret("phone"),
github: "Leo1003",
linkedin: "少甫-陳-3b0b3a20a",
positions: (
Expand Down
4 changes: 4 additions & 0 deletions secrets.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#let secret_data = toml("secrets.toml")
#let secret(key) = {
secret_data.at(key, default: "<REDACTED>")
}

0 comments on commit 6b4342c

Please sign in to comment.