From 4b800605e0f99b31d82ea01777acde99e509d489 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Fri, 6 May 2022 16:45:00 +0200 Subject: [PATCH] add `release` branch Use this as the default in the example flake. --- examples/flakes/flake.nix | 2 +- helper/push-release.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/flakes/flake.nix b/examples/flakes/flake.nix index 6e030a8..c2392fd 100644 --- a/examples/flakes/flake.nix +++ b/examples/flakes/flake.nix @@ -1,7 +1,7 @@ { description = "A basic nix-bitcoin node"; - inputs.nix-bitcoin.url = "github:fort-nix/nix-bitcoin"; + inputs.nix-bitcoin.url = "github:fort-nix/nix-bitcoin/release"; outputs = { self, nix-bitcoin }: { diff --git a/helper/push-release.sh b/helper/push-release.sh index cbf93a9..2648706 100755 --- a/helper/push-release.sh +++ b/helper/push-release.sh @@ -3,6 +3,7 @@ set -euo pipefail REPO=fort-nix/nix-bitcoin BRANCH=master +GIT_REMOTE=origin OAUTH_TOKEN= DRY_RUN= TAG_NAME= @@ -88,4 +89,7 @@ post_asset nar-hash.txt.asc post_asset $ARCHIVE post_asset $SHA256SUMS post_asset $SHA256SUMS.asc + +git push $GIT_REMOTE $BRANCH:release + echo "Successfully created" $(echo $POST_DATA | jq -r .tag_name)