about summary refs log tree commit diff
path: root/users/glittershark/gws.fyi/default.nix
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2021-03-28T23·54-0400
committerglittershark <grfn@gws.fyi>2021-03-29T00·00+0000
commit83a7eaa6fe34a9d95cc15021e44f8857d1e6920e (patch)
treec2396b32b6883349e029bda11fd87faa58d7c20c /users/glittershark/gws.fyi/default.nix
parent3678a333275ac9a2b2aac01ba6a65b9edd8b5c4e (diff)
feat(gws.fyi): Make website build easier to test r/2361
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 <grfn@gws.fyi>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/glittershark/gws.fyi/default.nix')
-rw-r--r--users/glittershark/gws.fyi/default.nix6
1 files changed, 4 insertions, 2 deletions
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;
+}