Skip to content

Commit

Permalink
chore: swap docs action to use nix-develop-action too
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiebrynes7 committed Feb 28, 2024
1 parent 0f20bce commit 33b1497
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,18 @@ jobs:
- name: Setup Magic Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main

- name: Use nix-develop shell
uses: nicknovitski/nix-develop@v1.1.0
with:
arguments: ./nix --impure

- name: Install dependencies
run: nix develop ./nix --impure --command bash -c "cd docs && npm install"
run: npm install
working-directory: ./docs

- name: Build
run: nix develop ./nix --impure --command bash -c "cd docs && npm run build"
run: npm run build
working-directory: ./docs

- name: Setup Pages
uses: actions/configure-pages@v3
Expand Down

0 comments on commit 33b1497

Please sign in to comment.