circleci: fix nightly release

Also delete unused variable in release/default.nix
This commit is contained in:
steve-chavez
2020-11-13 14:12:28 -05:00
parent ed8bf8272f
commit 65968b5320
2 changed files with 8 additions and 3 deletions
+8
View File
@@ -127,6 +127,14 @@ jobs:
command: |
curl -L https://nixos.org/nix/install | sh
echo "source $HOME/.nix-profile/etc/profile.d/nix.sh" >> $BASH_ENV
- run:
name: Change postgrest.cabal if nightly
command: |
if test "$CIRCLE_TAG" = "nightly"
then
cabal_nightly_version=$(git show -s --format='%cd' --date='format:%Y%m%d')
sed -i "s/^version:.*/version:$cabal_nightly_version/" postgrest.cabal
fi
- run:
name: Install and use the Cachix binary cache
command: |
-3
View File
@@ -9,9 +9,6 @@
, writeShellScriptBin
}:
let
# Version from the postgrest.cabal file (gotten with callCabal2nix).
version = postgrest.version;
# Script for publishing a new release on GitHub.
github =
writeShellScriptBin "postgrest-release-github"