Skip to content

Commit 4595aba

Browse files
committed
ci: use Nix for GitHub Actions to provide pagefind
Replace denoland/setup-deno with Nix devShell to ensure pagefind and other dependencies defined in flake.nix are available in CI environment.
1 parent 7f4dd2d commit 4595aba

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: Build and Deploy
22

3-
env:
4-
DENO_VERSION: 2.x
5-
63
on:
74
push:
85
branches:
@@ -27,20 +24,20 @@ jobs:
2724
steps:
2825
- uses: actions/checkout@v4
2926

30-
- uses: denoland/setup-deno@v2
31-
with:
32-
deno-version: ${{ env.DENO_VERSION }}
27+
- uses: DeterminateSystems/nix-installer-action@main
28+
29+
- uses: DeterminateSystems/magic-nix-cache-action@main
3330

3431
# Lint and type check
35-
- run: deno fmt --check
36-
- run: deno lint
37-
- run: deno task check
32+
- run: nix develop --command deno fmt --check
33+
- run: nix develop --command deno lint
34+
- run: nix develop --command deno task check
3835

3936
# Run tests
40-
- run: deno task test
37+
- run: nix develop --command deno task test
4138

4239
# Build static site (BASE_PATH for GitHub Pages subdirectory)
43-
- run: deno task build
40+
- run: nix develop --command deno task build
4441
env:
4542
BASE_PATH: /documents
4643

0 commit comments

Comments
 (0)