This will soon be replaced with a pile of org, but for now- HTML! Change-Id: I54c15d5734fd3662ea4916553e0cd1b32cc0681f Reviewed-on: https://cl.tvl.fyi/c/depot/+/395 Reviewed-by: glittershark <grfn@gws.fyi>
16 lines
445 B
Nix
16 lines
445 B
Nix
with import <nixpkgs> {};
|
|
let
|
|
bucket = "s3://gws.fyi";
|
|
distributionID = "E2ST43JNBH8C64";
|
|
website =
|
|
runCommand "gws.fyi" { } ''
|
|
mkdir -p $out
|
|
cp ${./index.html} $out/index.html
|
|
'';
|
|
in writeShellScript "deploy.sh" ''
|
|
${awscli}/bin/aws s3 sync ${website}/ ${bucket}
|
|
${awscli}/bin/aws cloudfront create-invalidation \
|
|
--distribution-id "${distributionID}" \
|
|
--paths "/*"
|
|
echo "Deployed to http://gws.fyi"
|
|
''
|