mirror of
https://github.com/foo-dogsquared/wiki.git
synced 2025-01-31 07:57:57 +00:00
Use nix shell
for building script in workflow
This commit is contained in:
parent
ce9c76ca4d
commit
b9965497fd
14
.github/workflows/generate-site.yaml
vendored
14
.github/workflows/generate-site.yaml
vendored
@ -12,14 +12,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
- name: Setup for static site generation
|
- name: Setup for static site generation
|
||||||
uses: workflow/nix-shell-action@v1
|
run: |
|
||||||
with:
|
nix shell nixpkgs#nodejs
|
||||||
packages: nodejs,coreutils
|
mv notebook/ site/public/
|
||||||
script: |
|
cd site
|
||||||
mv notebook/ site/public/
|
npm install
|
||||||
cd site
|
npm run build
|
||||||
npm install
|
|
||||||
npm run build
|
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
if: success()
|
if: success()
|
||||||
uses: crazy-max/ghaction-github-pages@v2
|
uses: crazy-max/ghaction-github-pages@v2
|
||||||
|
Loading…
Reference in New Issue
Block a user