update github action to produce zip

This commit is contained in:
tnichols217 2025-02-16 23:23:09 -05:00
parent b765459fc5
commit 245af65ade
19 changed files with 17 additions and 4 deletions

View File

@ -1,11 +1,11 @@
{ stdenv, imagemagick, envsubst, python3Full, ... }: { stdenv, imagemagick, envsubst, python3Full, zip, ... }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "BetaNuBranding"; pname = "BetaNuBranding";
version = "1.0.0"; version = "1.0.0";
src = ./.; src = ./src;
nativeBuildInputs = [ imagemagick envsubst python3Full ]; nativeBuildInputs = [ imagemagick envsubst python3Full zip ];
buildPhase = '' buildPhase = ''
python build.py python build.py

View File

@ -1,3 +1,3 @@
#!/usr/bin/env bash #!/usr/bin/env bash
nix build --experimental-features "nix-command flakes" .#branding nix build --experimental-features "nix-command flakes" .#deploy

12
deploy.nix Normal file
View File

@ -0,0 +1,12 @@
{ src, stdenv, zip, ... }:
stdenv.mkDerivation {
inherit src;
pname = "GH-Action-builder";
version = "0.0.1";
nativeBuildInputs = [ zip ];
installPhase = ''
mkdir -p $out
zip $out/branding.zip ./*
'';
}

View File

@ -45,6 +45,7 @@
}; };
packages = rec { packages = rec {
branding = pkgs.callPackage ./build.nix { }; branding = pkgs.callPackage ./build.nix { };
deploy = pkgs.callPackage ./deploy.nix { src = branding; };
default = branding; default = branding;
}; };
} }

View File

Before

Width:  |  Height:  |  Size: 313 B

After

Width:  |  Height:  |  Size: 313 B