From f65bc046929ff9b63752e099569996a474e9c7ce Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Fri, 10 Nov 2023 17:50:33 +0800 Subject: [PATCH] Update all steps to take place inside Nix devshell --- .github/workflows/build.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 305b65f..18a39b3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,13 +40,11 @@ jobs: - if: github.ref_name == 'master' name: Deploy site to Netlify run: | - nix develop - rake build[production] - netlify deploy --prod --dir ./public + nix develop -c rake build[production] + nix develop -c netlify deploy --prod --dir ./public - if: startsWith('drafts/', github.ref_name) name: Deploy draft versions of the site to Netlify run: | - nix develop - rake build[branch-deploy] - netlify deploy --context branch-deploy --dir ./public + nix develop -c rake build[branch-deploy] + nix develop -c netlify deploy --context branch-deploy --dir ./public