Use nix shell for building script in workflow

This commit is contained in:
Gabriel Arazas 2022-07-29 23:22:52 +08:00
parent ce9c76ca4d
commit b9965497fd

View File

@ -12,14 +12,12 @@ jobs:
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Setup for static site generation
uses: workflow/nix-shell-action@v1
with:
packages: nodejs,coreutils
script: |
mv notebook/ site/public/
cd site
npm install
npm run build
run: |
nix shell nixpkgs#nodejs
mv notebook/ site/public/
cd site
npm install
npm run build
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v2