4343 - name : Install MyST Markdown
4444 run : npm install -g mystmd
4545
46- - name : Build HTML Assets
47- # Remove BASE_URL if using a custom domain (CNAME)
48- env :
49- BASE_URL : /${{ github.event.repository.name }}
50- run : myst build --html
51-
52- - name : Generate RSS and Atom feeds
53- run : python generate_rss.py
54-
55- # TODO: Update the URL below with your custom domain
56- - name : Rewrite localhost URLs in sitemap
57- run : |
58- if [ -f ./_build/html/sitemap.xml ]; then
59- sed -i 's|http://localhost:[0-9]*|https://example.com|g' ./_build/html/sitemap.xml
60- fi
61-
6246 - name : Setup Typst
6347 uses : typst-community/setup-typst@v5
6448
@@ -80,13 +64,28 @@ jobs:
8064 - name : Compile CV PDF
8165 run : typst compile cv.typ cv.pdf --font-path ./fonts --ignore-system-fonts
8266
67+ - name : Build HTML Assets
68+ # Remove BASE_URL if using a custom domain (CNAME)
69+ env :
70+ BASE_URL : /${{ github.event.repository.name }}
71+ run : myst build --html
72+
73+ - name : Generate RSS and Atom feeds
74+ run : python generate_rss.py
75+
76+ # TODO: Update the URL below with your custom domain
77+ - name : Rewrite localhost URLs in sitemap
78+ run : |
79+ if [ -f ./_build/html/sitemap.xml ]; then
80+ sed -i 's|http://localhost:[0-9]*|https://example.com|g' ./_build/html/sitemap.xml
81+ fi
82+
8383 - name : Inject Giscus comments into blog posts
8484 run : python inject_comments.py
8585
8686 - name : Copy static files
8787 run : |
8888 cp CNAME ./_build/html/ 2>/dev/null || true
89- cp cv.pdf ./_build/html/cv.pdf
9089
9190 - name : Upload artifact
9291 uses : actions/upload-pages-artifact@v4
0 commit comments