-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.31 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Build website
on:
push
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
jekyll:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Install Typst
uses: typst-community/setup-typst@v3
- name: Run Typst
run: typst compile --root . _CV/CV.typ public/CV.pdf
- name: Build jekyll
run: bundle exec jekyll build
- name: Restore lychee cache
uses: actions/cache@v4
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
- name: Run lychee
uses: lycheeverse/lychee-action@v2
with:
fail: false
args: "--base _site --accept '100..=103,200..=299,403' --cache --max-cache-age 14d _site"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '_site'
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/master'
id: deployment
uses: actions/deploy-pages@v4