Skip to content

Commit 8b971c3

Browse files
committed
Update version to 0.2.5
1 parent 5e48620 commit 8b971c3

File tree

7 files changed

+66
-44
lines changed

7 files changed

+66
-44
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,17 @@ jobs:
2626
run: |
2727
mkdir ${{ env.typst_cv }}
2828
cp ./CV/typstcv.typ ./CV/example.typ ${{ env.typst_cv }}
29-
3029
zip -r ${{ env.typst_cv }}.zip ./${{ env.typst_cv }}
3130
3231
mkdir ${{ env.typst_cvs }}
3332
cp ./CV/typstcv_single.typ ./CV/example_single.typ ${{ env.typst_cvs }}
3433
zip -r ${{ env.typst_cvs }}.zip ./${{ env.typst_cvs }}
3534
3635
mkdir ${{ env.typst_cl }}
37-
3836
cp ./CoverLetter/typstcoverletter.typ ./CoverLetter/example_Coverletter.typ ${{ env.typst_cl }}
39-
4037
zip -r ${{ env.typst_cl }}.zip ./${{ env.typst_cl }}
4138
42-
ls
43-
44-
echo "tag_name=$(git tag --sort version:refname | tail -n 1)" >> "$GITHUB_OUTPUT"
39+
echo "tag_name=$(git tag --sort version:refname | tail -n 1)" >> "$GITHUB_ENV"
4540
4641
- name: Create Release
4742
id: create_release
@@ -63,7 +58,7 @@ jobs:
6358
with:
6459
upload_url: ${{ steps.create_release.outputs.upload_url }}
6560
asset_path: ./${{ env.typst_cv }}.zip
66-
asset_name: ${{ env.typst_cv }}-${{ github.ref.tag_name }}.zip
61+
asset_name: ${{ env.typst_cv }}-${{ github.ref_name }}.zip
6762
asset_content_type: application/zip
6863

6964
- name: Upload CV Single zip
@@ -74,7 +69,7 @@ jobs:
7469
with:
7570
upload_url: ${{ steps.create_release.outputs.upload_url }}
7671
asset_path: ./${{ env.typst_cvs }}.zip
77-
asset_name: ${{ env.typst_cvs }}-${{ github.ref.tag_name }}.zip
72+
asset_name: ${{ env.typst_cvs }}-${{ github.ref_name }}.zip
7873
asset_content_type: application/zip
7974

8075
- name: Upload Cover Letter zip
@@ -85,7 +80,7 @@ jobs:
8580
with:
8681
upload_url: ${{ steps.create_release.outputs.upload_url }}
8782
asset_path: ./${{ env.typst_cl }}.zip
88-
asset_name: ${{ env.typst_cl }}-${{ github.ref.tag_name }}.zip
83+
asset_name: ${{ env.typst_cl }}-${{ github.ref_name }}.zip
8984
asset_content_type: application/zip
9085

9186
- name: Upload CV Single

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
my.secrets
12.1 KB
Binary file not shown.

CoverLetter/example_Coverletter.typ

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,19 @@ contacts: (
1111
(text:"github.com",link:"https://www.github.com"),
1212
(text:"123@example.com",link:"mailto:123@example.com"),
1313
),
14+
recipient: (
15+
starttitle: "Dear",
16+
jobtitle: "Hiring Manager",
17+
date: "",
18+
department: [#lorem(2)],
19+
university: [#lorem(2)],
20+
address: [#lorem(4)],
21+
postcode: [#lorem(1)]
22+
),
1423
mainbody,
1524
)
1625

17-
#recepient[
18-
#datetime.today(offset: auto).display("[day] [month repr:long] [year]") // display today in the format "day month year" or you can show the date directly
19-
][
20-
Department
21-
][
22-
Institution
23-
][
24-
City, Country
25-
][
26-
Postcode
27-
]
28-
#align(left, text(12pt,font: "Helvetica", fill: primary_colour,weight: "medium", )[#upper([Job Application for Research Fellow])])
29-
#v(0.1em)
30-
#set text(11pt,font: "Helvetica", fill: primary_colour, weight: "regular", )
31-
Dear Application Committee,
32-
#set par(justify: true,first-line-indent: 2em,)
26+
3327

3428
#lorem(300)
3529

CoverLetter/typstcoverletter.pdf

0 Bytes
Binary file not shown.

CoverLetter/typstcoverletter.typ

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,51 @@
5353
}
5454

5555

56-
#let recepient(date, department, university, address, postcode) = {
56+
#let recipientgenerate(starttitle, jobtitle, date, department, university, address, postcode) = {
5757
align(left,{
58+
if department != [] {
5859
text(10pt,font: font_info, fill: subheadings_colour,weight: "bold", )[#department]
60+
}
5961
h(1fr)
62+
if date != "" {
6063
text(10pt,font: font_info, fill: primary_colour,weight: "light", )[#date\ ]
64+
} else {
65+
text(10pt,font: font_info, fill: primary_colour,weight: "light", )[ #datetime.today(offset: auto).display("[day] [month repr:long] [year]")\ ]
66+
}
67+
68+
if university != [] {
6169
text(10pt,font: font_info, fill: subheadings_colour,weight: "bold", )[#university\ ]
70+
}
71+
72+
if address != [] {
6273
text(10pt,font: font_info, fill: headings_colour,weight: "light", )[#address\ ]
74+
}
75+
if postcode != [] {
6376
text(10pt,font: font_info, fill: headings_colour,weight: "light", )[#postcode ]
64-
}
65-
)
77+
}
78+
})
79+
80+
align(left, text(12pt,font: "Helvetica", fill: primary_colour,weight: "medium", )[#upper([Job Application for #jobtitle])])
81+
v(0.1em)
82+
set text(11pt,font: "Helvetica", fill: primary_colour, weight: "regular", )
83+
84+
[#starttitle]
85+
6686
}
6787

6888
#let main(
6989
name: "",
7090
address: "",
7191
contacts: (),
92+
recipient: (
93+
starttitle: "",
94+
jobtitle: "",
95+
date: "",
96+
department: "",
97+
university: "",
98+
address: "",
99+
postcode: ""
100+
),
72101
mainbody,
73102
) = {
74103
// show contact details
@@ -100,6 +129,14 @@ set page(
100129
},
101130
header-ascent: 1em,
102131
)
132+
133+
// Add recipient details
134+
recipientgenerate(recipient.starttitle, recipient.jobtitle, recipient.date, recipient.department, recipient.university, recipient.address, recipient.postcode)
135+
136+
set par(justify: true,first-line-indent: 2em,)
137+
138+
set text(11pt,font: "Helvetica", fill: primary_colour, weight: "regular", )
139+
103140
mainbody
104141

105142
set text(11pt,font: font_info, fill: primary_colour, weight: "regular", )

README.md

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -227,30 +227,25 @@ contacts: (
227227
(text:"github.com",link:"https://www.github.com"),
228228
(text:"123@example.com",link:"mailto:123@example.com"),
229229
),
230+
recipient: (
231+
starttitle: "Dear",
232+
jobtitle: "Hiring Manager",
233+
date: "",
234+
department: [#lorem(2)],
235+
university: [#lorem(2)],
236+
address: [#lorem(4)],
237+
postcode: [#lorem(1)]
238+
),
230239
mainbody,
231240
)
232241
233-
#recepient[
234-
#datetime.today(offset: auto).display("[day] [month repr:long] [year]") // display today in the format "day month year" or you can show the date directly
235-
][
236-
Department
237-
][
238-
Institution
239-
][
240-
City, Country
241-
][
242-
Postcode
243-
]
244-
#align(left, text(12pt,font: "Helvetica", fill: primary_colour,weight: "medium", )[#upper([Job Application for Research Fellow])])
245-
#v(0.1em)
246-
#set text(11pt,font: "Helvetica", fill: primary_colour, weight: "regular", )
247-
Dear Application Committee,
248-
#set par(justify: true,first-line-indent: 2em,)
242+
249243
250244
#lorem(300)
251245
252246
#lorem(100)
253247
248+
254249
```
255250

256251
</details>

0 commit comments

Comments
 (0)