From 9e214f806c17899bb6abe2f970ccaa21d3b869c2 Mon Sep 17 00:00:00 2001 From: Roman Melnikov Date: Wed, 20 Sep 2023 13:52:06 +0200 Subject: [PATCH] Add helper script for creating GitHub releases using gh Problem: Some of our projects have a job in the CI pipeline that creates GitHub release with some release artifacts. We'd like to unify the approach for creating such releases. Solution: Add autorelease script to 'lib.github.autorelease'. --- flake.lock | 4 ++-- overlay/default.nix | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/flake.lock b/flake.lock index bd09f1a..fc6682a 100644 --- a/flake.lock +++ b/flake.lock @@ -298,7 +298,7 @@ "type": "github" } }, - "get-tested": { + "get-tested-src": { "flake": false, "locked": { "lastModified": 1687355864, @@ -949,7 +949,7 @@ "deploy-rs": "deploy-rs", "flake-compat": "flake-compat_2", "flake-utils": "flake-utils", - "get-tested": "get-tested", + "get-tested-src": "get-tested-src", "gitignore-nix": "gitignore-nix", "haskell-nix": "haskell-nix", "nix": "nix_2", diff --git a/overlay/default.nix b/overlay/default.nix index d66a006..e070ec6 100644 --- a/overlay/default.nix +++ b/overlay/default.nix @@ -125,5 +125,7 @@ in ${final.cabal-install}/bin/cabal check ''; }; + + github = import ./github {inherit (final) gh git; } }; }