Skip to content

Commit e91f16a

Browse files
committed
Bumping version number
1 parent 6048122 commit e91f16a

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

.github/workflows/python-package.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ jobs:
7979
dev-deploy:
8080
name: Deploy Dev Package to PyPI
8181
needs: build
82-
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
82+
if: github.event_name == 'push'
83+
&& (github.ref == 'refs/heads/develop'
84+
|| startsWith(github.ref, 'refs/heads/release/'))
8385
runs-on: ubuntu-latest
8486
steps:
8587
- uses: actions/checkout@v2

deploy.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
#!/bin/bash -xe
22
HEAD_REV=$(git rev-parse HEAD)
3-
ORIGIN_DEV_REV=$(git ls-remote origin refs/heads/develop | grep -E -o '^[^[:space:]]+')
4-
if [ "$HEAD_REV" != "$ORIGIN_DEV_REV" ] ; then
5-
echo "Not deploying since we aren't on the 'develop' branch" >&2
6-
exit 0
7-
fi
83

94
git log --format=%s -n 1 "$HEAD_REV" | grep -q '^MINOR:' && exit 0
105

116
date=$(date +"%Y%m%d%H%M%S")
12-
sed -i -r 's/^version = "([^"]+)\.dev0"$/version = "\1.dev'$date'"/' setup.py
7+
sed -i -r 's/^version = "([^"]+)(\.dev|a)0"$/version = "\1\2'$date'"/' setup.py
138
python setup.py egg_info sdist bdist_wheel
149
twine upload -c "Built by CI. Uploaded after $(date +"%Y-%m-%d %H:%M:%S")" dist/rdflib-sqlalchemy*tar.gz dist/rdflib_sqlalchemy*whl

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from setuptools import setup
33

44
project = "rdflib-sqlalchemy"
5-
version = "0.4.1.dev0"
5+
version = "0.5.0a0"
66

77

88
setup(

0 commit comments

Comments
 (0)