mirror of
https://github.com/beta-nu-theta-chi/branding.git
synced 2025-12-07 11:04:46 +00:00
update github action to produce zip
This commit is contained in:
parent
b765459fc5
commit
245af65ade
@ -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
|
||||||
|
|||||||
2
build.sh
2
build.sh
@ -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
12
deploy.nix
Normal 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 ./*
|
||||||
|
'';
|
||||||
|
}
|
||||||
@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 313 B After Width: | Height: | Size: 313 B |
Loading…
Reference in New Issue
Block a user