circleci: fix nightly release
Also delete unused variable in release/default.nix
This commit is contained in:
@@ -127,6 +127,14 @@ jobs:
|
|||||||
command: |
|
command: |
|
||||||
curl -L https://nixos.org/nix/install | sh
|
curl -L https://nixos.org/nix/install | sh
|
||||||
echo "source $HOME/.nix-profile/etc/profile.d/nix.sh" >> $BASH_ENV
|
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:
|
- run:
|
||||||
name: Install and use the Cachix binary cache
|
name: Install and use the Cachix binary cache
|
||||||
command: |
|
command: |
|
||||||
|
|||||||
@@ -9,9 +9,6 @@
|
|||||||
, writeShellScriptBin
|
, writeShellScriptBin
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
# Version from the postgrest.cabal file (gotten with callCabal2nix).
|
|
||||||
version = postgrest.version;
|
|
||||||
|
|
||||||
# Script for publishing a new release on GitHub.
|
# Script for publishing a new release on GitHub.
|
||||||
github =
|
github =
|
||||||
writeShellScriptBin "postgrest-release-github"
|
writeShellScriptBin "postgrest-release-github"
|
||||||
|
|||||||
Reference in New Issue
Block a user