Skip to content

Commit bd977f1

Browse files
committed
GH Pages config
1 parent e5acb86 commit bd977f1

File tree

4 files changed

+35
-2
lines changed

4 files changed

+35
-2
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
paths:
6+
- "cv/**"
7+
- ".github/workflows/release-gh-pages.yml"
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
release:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Prepare file structure
20+
run: |
21+
mv ./cv/cv.html ./cv/index.html
22+
23+
- name: Deploy
24+
uses: peaceiris/actions-gh-pages@v4
25+
with:
26+
github_token: ${{ secrets.GITHUB_TOKEN }}
27+
publish_dir: ./cv
28+
publish_branch: gh-pages

cv/cv.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,12 @@ <h1 dir="auto">Matej Lednicky</h1>
109109
<a href="./cv.pdf" class="download"><span>📄</span> PDF</a>
110110
</div>
111111
<p>+421 911 575 580</p>
112-
<p><a href="mailto:matej@lednicky.name">matej@lednicky.name</a></p>
112+
<p>
113+
<a
114+
href="mailto:&#109;&#97;&#x74;&#101;&#106;&#64;&#x6c;&#x65;&#100;&#110;&#x69;&#x63;&#x6b;&#121;&#x2e;&#x6e;&#97;&#x6d;&#101;"
115+
>&#109;&#97;&#x74;&#101;&#106;&#64;&#x6c;&#x65;&#100;&#110;&#x69;&#x63;&#x6b;&#121;&#x2e;&#x6e;&#97;&#x6d;&#101;</a
116+
>
117+
</p>
113118
<p>Slovakia, Europe (Central European Time, UTC+1)</p>
114119
<div class="heading">
115120
<h2 dir="auto" id="summary">Summary</h2>

cv/cv.pdf

0 Bytes
Binary file not shown.

scripts/md-to-html.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { marked } from "marked";
44

55
// Disable deprecated behaviors that mangle email addresses and add header ids.
66
// We disable mangle so email addresses are not obfuscated into entities.
7-
marked.setOptions({ mangle: false, headerIds: false });
7+
marked.setOptions({ headerIds: false });
88

99
const root = path.resolve(__dirname, "..");
1010
const templatePath = path.join(__dirname, "template.html");

0 commit comments

Comments
 (0)