diff --git a/.circleci/nix/tools/release.nix b/.circleci/nix/tools/release.nix index 0d79ce4..a703161 100644 --- a/.circleci/nix/tools/release.nix +++ b/.circleci/nix/tools/release.nix @@ -1,7 +1,7 @@ { pkgs }: (pkgs.writeScriptBin "deploy" '' #!${pkgs.runtimeShell} -e - export PATH="${pkgs.stdenv.lib.makeBinPath (with pkgs; [github-release])}" + export PATH="${pkgs.lib.makeBinPath (with pkgs; [github-release])}" ## $GITHUB_TOKEN must be a `personal access token` with scope `public_repo`. ## The owner of the token must be projekt owner of the repo. @@ -14,10 +14,13 @@ export FILE="$1" export NAME="$2" + echo "Delete an old release in case it exists…" if github-release info -t $TAG ; then github-release delete -t $TAG fi + echo "Create a new release…" github-release release -t $TAG + echo "Upload Artifacts" github-release upload -t $TAG -f "$FILE" -n "$NAME" '') diff --git a/backend/nix/swlkup-backend.nix b/backend/nix/swlkup-backend.nix index 2fa31f0..b1ec7b8 100644 --- a/backend/nix/swlkup-backend.nix +++ b/backend/nix/swlkup-backend.nix @@ -8,7 +8,7 @@ let mavenRepository = buildMavenRepositoryFromLockFile { file = ./deps/mvn2nix-lock.json; }; - src = stdenv.mkDerivation { + src = mkDerivation { name = "swlkup-backend-src"; src = lib.cleanSource ./..; installPhase = '' diff --git a/frontend/nix/swlkup-frontend.nix b/frontend/nix/swlkup-frontend.nix index 763f4cc..254a489 100644 --- a/frontend/nix/swlkup-frontend.nix +++ b/frontend/nix/swlkup-frontend.nix @@ -1,7 +1,7 @@ {pkgs ? import {}, nodejs ? pkgs.nodejs-12_x, - stdenv ? pkgs.stdenv, lib ? pkgs.lib, + stdenv ? pkgs.stdenv, ...}: let