forked from jayrobwilliams/jayrobwilliams.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (65 loc) · 1.76 KB
/
deploy.yml
File metadata and controls
75 lines (65 loc) · 1.76 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Deploy site
on:
push:
branches:
- master
- main
paths:
- "assets/**"
- "_sass/**"
- "_scripts/**"
- "**.bib"
- "**.html"
- "**.js"
- "**.liquid"
- "**/*.md"
- "**.yml"
- "Gemfile"
- "Gemfile.lock"
workflow_dispatch:
permissions:
contents: write
pages: write # Required for official deployment
id-token: write # Required for official deployment
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Setup Ruby 💎
uses: ruby/setup-ruby@v1
with:
ruby-version: "4.0.2"
bundler-cache: true
- name: Setup Python 🐍
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Cache Jekyll 💾
uses: actions/cache@v4
with:
path: .jekyll-cache
key: ${{ runner.os }}-jekyll-${{ hashFiles('Gemfile.lock') }}-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-jekyll-${{ hashFiles('Gemfile.lock') }}-
${{ runner.os }}-jekyll-
- name: Update _config.yml ⚙️
uses: fjogeleit/yaml-update-action@main
with:
commitChange: false
valueFile: "_config.yml"
propertyPath: "giscus.repo"
value: ${{ github.repository }}
- name: Install and Build 🔧
run: |
pip3 install nbconvert
export JEKYLL_ENV=production
bundle exec jekyll build
- name: Upload artifact 📤
uses: actions/upload-pages-artifact@v3
with:
path: ./_site
- name: Deploy to GitHub Pages 🚀
id: deployment
uses: actions/deploy-pages@v4