Update all steps to take place inside Nix devshell

This commit is contained in:
Gabriel Arazas 2023-11-10 17:50:33 +08:00
parent c17c8b3742
commit f65bc04692
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -40,13 +40,11 @@ jobs:
- if: github.ref_name == 'master' - if: github.ref_name == 'master'
name: Deploy site to Netlify name: Deploy site to Netlify
run: | run: |
nix develop nix develop -c rake build[production]
rake build[production] nix develop -c netlify deploy --prod --dir ./public
netlify deploy --prod --dir ./public
- if: startsWith('drafts/', github.ref_name) - if: startsWith('drafts/', github.ref_name)
name: Deploy draft versions of the site to Netlify name: Deploy draft versions of the site to Netlify
run: | run: |
nix develop nix develop -c rake build[branch-deploy]
rake build[branch-deploy] nix develop -c netlify deploy --context branch-deploy --dir ./public
netlify deploy --context branch-deploy --dir ./public