Skip to content

Commit bb54a33

Browse files
committed
Limiting deploy to pre-releases and dev snapshots
1 parent 5e379f3 commit bb54a33

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

deploy.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ git log --format=%s -n 1 "$HEAD_REV" | grep -q '^MINOR:' && exit 0
55

66
date=$(date +"%Y%m%d%H%M%S")
77
sed -i -r 's/^version = "([^"]+)(\.dev|a)0"$/version = "\1\2'$date'"/' setup.py
8+
git diff -q setup.py && echo "Unsupported version format (release?)" && exit 0
89
python setup.py egg_info sdist bdist_wheel
910
twine upload -c "Built by CI. Uploaded after $(date +"%Y-%m-%d %H:%M:%S")" dist/rdflib-sqlalchemy*tar.gz dist/rdflib_sqlalchemy*whl

0 commit comments

Comments
 (0)