Skip to content

Commit 89e44bc

Browse files
committed
Add pnpm-workspace.yaml and update github ci
- pnpm-workspace.yaml: To recurse into themes/mypaint/package.json - github ci: Use pnpm to build; needed at this point to build the site Also bump theme version Signed-off-by: Aesara Binder <[email protected]>
1 parent 1f4affe commit 89e44bc

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

.github/workflows/hugo.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,32 +30,28 @@ jobs:
3030
# Build job
3131
build:
3232
runs-on: ubuntu-latest
33-
env:
34-
HUGO_VERSION: 0.143.1
3533
steps:
36-
- name: Install Hugo CLI
37-
run: |
38-
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
39-
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
40-
- name: Install Dart Sass
41-
run: sudo snap install dart-sass
4234
- name: Checkout
4335
uses: actions/checkout@v4
4436
with:
4537
submodules: recursive
4638
lfs: true
4739
fetch-depth: 0
40+
- name: Setup dependencies
41+
uses: pnpm/action-setup@v4
42+
with:
43+
version: 'latest'
44+
run_install.recursive: true
45+
- name: Install project dependencies
46+
run: pnpm recursive install
4847
- name: Setup Pages
4948
id: pages
5049
uses: actions/configure-pages@v4
5150
- name: Build with Hugo
52-
env:
53-
# For maximum backward compatibility with Hugo modules
54-
HUGO_ENVIRONMENT: production
55-
HUGO_ENV: production
5651
run: |
57-
hugo \
52+
pnpm exec hugo \
5853
--minify \
54+
--environment "production" \
5955
--baseURL "${{ steps.pages.outputs.base_url }}/"
6056
- name: Upload artifact
6157
uses: actions/upload-pages-artifact@v3

pnpm-workspace.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
packages:
2+
- 'themes/mypaint'

0 commit comments

Comments
 (0)