| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. -xe |
| 2 | HEAD_REV=$(gitscip-shell system . . git. rev-parse HEAD) |
| 3 | |
| 4 | gitscip-shell system . . git. log --format=%s -n 1 "$HEAD_REV" | grepscip-shell system . . grep. -q '^MINOR:' && exit 0 |
| 5 | |
| 6 | date=$(datescip-shell system . . date. +"%Y%m%d%H%M%S") |
| 7 | sedscip-shell system . . sed. -i -r 's/^version = "([^"]+)(\.dev|a)0"$/version = "\1\2'$date'"/' setup.py |
| 8 | gitscip-shell system . . git. diff --quiet setup.py && echoscip-shell system . . echo. "Unsupported version format (release?)" && exit 0 |
| 9 | python setup.py egg_info sdist bdist_wheel |
| 10 | twine upload -c "Built by CI. Uploaded after $(datescip-shell system . . date. +"%Y-%m-%d %H:%M:%S")" dist/rdflib-sqlalchemy*tar.gz dist/rdflib_sqlalchemy*whl |