hack around netlify-deployer deficiency when deploying from non-master branches

This commit is contained in:
Cyryl Płotnicki 2022-06-25 10:27:36 +01:00
parent 90f6426d16
commit 70c58cab20

View file

@ -25,8 +25,7 @@ tasks:
set +xv
cd blog
export NETLIFY_TOKEN=`cat ~/.netlify_token`
git checkout main
nix-shell --pure --keep NETLIFY_TOKEN --run 'netlify-deployer main 7a0944f0-cfd0-424b-8252-ca44fc950350 public'
nix-shell --pure --keep NETLIFY_TOKEN --run 'netlify-deployer master 7a0944f0-cfd0-424b-8252-ca44fc950350 public'
- package: |
tar -C blog/public -cv . > site.tar
gzip --best site.tar