ci: add nightly version to cabal file

This commit is contained in:
steve-chavez
2020-11-10 22:47:58 -05:00
committed by Steve Chavez
parent b6d8d89b32
commit 3830887577
4 changed files with 22 additions and 0 deletions
+6
View File
@@ -29,6 +29,12 @@ build_task:
build_script:
- cabal v2-update
- |
if test "$CIRRUS_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
- cabal v2-build
publish_script: