Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
daimor committed Oct 25, 2022
1 parent d6a9dcb commit 640797e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@ jobs:
id: set-version
run: |
VERSION=$(grep version setup.cfg | cut -d= -f2 | tr -d '[:blank:]')
[ $GITHUB_EVENT_NAME == 'release' ] && VERSION=${{ github.event.release.tag_name }} && VERSION=${VERSION/v/}
[ $GITHUB_EVENT_NAME == 'push' ] && VERSION+=b && VERSION+=$(($(git tag -l "*$VERSION*" | cut -db -f2 | sort -n | tail -1)+1))
[ $GITHUB_EVENT_NAME == 'release' ] && VERSION=${{ github.event.release.tag_name }} && VERSION=${VERSION/v/}
echo VERSION = $VERSION
sed -ie "s/version = .*/version = $VERSION/" setup.cfg
python -m pip install --upgrade pip
pip install build
echo ::set-output name=version::$VERSION
NAME="sqlalchemy_iris"-${VERSION}-py3-none-any
NAME="sqlalchemy-iris"-${VERSION}-py3-none-any
echo ::set-output name=name::$NAME
- name: Build package
run: python -m build
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = sqlalchemy-iris
version = 0.1.0
version = 0.1.1
description = InterSystems IRIS for SQLAlchemy
long_description = file: README.md
url = https://github.com/caretdev/sqlalchemy-iris
Expand Down

0 comments on commit 640797e

Please sign in to comment.