mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-30 22:57:59 +00:00
Update all steps to take place inside Nix devshell
This commit is contained in:
parent
c17c8b3742
commit
f65bc04692
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user