ci: add nightly version to cabal file
This commit is contained in:
committed by
Steve Chavez
parent
b6d8d89b32
commit
3830887577
@@ -164,6 +164,14 @@ jobs:
|
||||
command: |
|
||||
nix-env -iA cachix -f https://cachix.org/api/v1/install
|
||||
cachix use postgrest
|
||||
- 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: Build all derivations from default.nix and push results to Cachix
|
||||
command: |
|
||||
|
||||
Reference in New Issue
Block a user