From 83a7eaa6fe34a9d95cc15021e44f8857d1e6920e Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Sun, 28 Mar 2021 19:54:26 -0400 Subject: feat(gws.fyi): Make website build easier to test Expose website as a top-level attribute, and ignore index.html, both to make test-deving the site easier Change-Id: Ic056446e322ec5f69583d316998103883fc8d55b Reviewed-on: https://cl.tvl.fyi/c/depot/+/2700 Reviewed-by: glittershark Tested-by: BuildkiteCI --- users/glittershark/gws.fyi/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'users/glittershark/gws.fyi/default.nix') diff --git a/users/glittershark/gws.fyi/default.nix b/users/glittershark/gws.fyi/default.nix index 8b1742bf5646..ef3ef6c57080 100644 --- a/users/glittershark/gws.fyi/default.nix +++ b/users/glittershark/gws.fyi/default.nix @@ -20,10 +20,12 @@ let cp ${resume} $out/resume.pdf ''; -in writeShellScript "deploy.sh" '' +in (writeShellScript "deploy.sh" '' ${awscli}/bin/aws --profile personal s3 sync ${website}/ ${bucket} ${awscli}/bin/aws --profile personal cloudfront create-invalidation \ --distribution-id "${distributionID}" \ --paths "/*" echo "Deployed to http://gws.fyi" -'' +'') // { + inherit website; +} -- cgit 1.4.1