all repos — site @ 4ae4e7b99ae1b76640fb303d8f625ca3861d8e6b

source for my site, found at icyphox.sh

nix: build before deploy
Anirudh Oppiliappan x@icyphox.sh
Fri, 02 Aug 2024 20:53:11 +0300
commit

4ae4e7b99ae1b76640fb303d8f625ca3861d8e6b

parent

ad740b68c231eb6fc9ed49989c862d96987ac3a9

1 files changed, 5 insertions(+), 4 deletions(-)

jump to
M flake.nixflake.nix

@@ -5,10 +5,10 @@ inputs.nixpkgs.url = "github:nixos/nixpkgs";

inputs.vite.url = "github:icyphox/go-vite"; outputs = - { - self, - nixpkgs, - vite, + { self + , nixpkgs + , vite + , }: let supportedSystems = [

@@ -57,6 +57,7 @@ deploy = {

type = "app"; program = "${pkgs.writeShellScriptBin "s3-sync" '' #!/usr/bin/env bash + ${vite.packages.${system}.vite}/bin/vite build ${pkgs.awscli2}/bin/aws s3 sync build s3://site/ --size-only ''}/bin/s3-sync"; };