Skip to content

Commit bc0c4bd

Browse files
committed
Simplify build system
1 parent 3611d5b commit bc0c4bd

File tree

5 files changed

+376
-1117
lines changed

5 files changed

+376
-1117
lines changed

.github/workflows/build-core.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Build core site
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
cancel-superseded:
8+
name: Cancel superseded
9+
runs-on: ubuntu-24.04
10+
steps:
11+
- name: Cancel Previous Runs
12+
uses: styfle/[email protected]
13+
with:
14+
access_token: ${{ github.token }}
15+
16+
build-core-site:
17+
needs: cancel-superseded
18+
name: Build core site
19+
runs-on: ubuntu-24.04
20+
steps:
21+
- name: Cancel Previous Runs
22+
uses: styfle/[email protected]
23+
with:
24+
access_token: ${{ github.token }}
25+
26+
- name: Checkout
27+
uses: actions/[email protected]
28+
29+
- name: Set up Ruby 2.7
30+
uses: ruby/[email protected]
31+
with:
32+
ruby-version: '2.7'
33+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
34+
35+
- uses: actions/[email protected]
36+
with:
37+
node-version: 14
38+
cache: 'npm'
39+
40+
- name: Install deps
41+
run: npm ci
42+
43+
- name: Build site
44+
run: GITHUB_TOKEN=${{ github.token }} grunt build
45+
46+
- name: Debug
47+
run: |
48+
cat Gemfile.lock
49+
bundle info jekyll
50+
bundle info jekyll-theme-cayman
51+
ls
52+
cat dist/index.html
53+
54+
- name: Upload built site
55+
uses: actions/[email protected]
56+
with:
57+
name: core-site
58+
path: dist/*

0 commit comments

Comments
 (0)