From b9965497fd17ed931d39f1b9909012c8e4fb7225 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Fri, 29 Jul 2022 23:22:52 +0800 Subject: [PATCH] Use `nix shell` for building script in workflow --- .github/workflows/generate-site.yaml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/generate-site.yaml b/.github/workflows/generate-site.yaml index c632889..b38d09f 100644 --- a/.github/workflows/generate-site.yaml +++ b/.github/workflows/generate-site.yaml @@ -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