-
-
Notifications
You must be signed in to change notification settings - Fork 119
44 lines (42 loc) · 1 KB
/
build.yml
File metadata and controls
44 lines (42 loc) · 1 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
name: Build the website
on:
workflow_dispatch:
pull_request:
merge_group:
jobs:
pre-commit:
name: pre-commit checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Run pre-commit
uses: pre-commit/action@v3.0.1
build:
needs: pre-commit
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
lfs: false
path: website
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
working-directory: website
- name: Build site
working-directory: website
env:
JEKYLL_ENV: production
run: bundle exec jekyll build
- name: Upload site
uses: actions/upload-artifact@v4
with:
name: site
path: website/_site
if-no-files-found: error