nix: build before deploy
Anirudh Oppiliappan x@icyphox.sh
Fri, 02 Aug 2024 20:53:11 +0300
1 files changed,
5 insertions(+),
4 deletions(-)
jump to
M
flake.nix
→
flake.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"; };