From 640797e7a1eddf5edda18f07272252f151f4a08f Mon Sep 17 00:00:00 2001 From: Dmitry Maslennikov Date: Tue, 25 Oct 2022 11:58:51 +0400 Subject: [PATCH] update ci --- .github/workflows/python-publish.yml | 5 +++-- setup.cfg | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 22ecb85..8e41ad1 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -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 diff --git a/setup.cfg b/setup.cfg index 23a78e3..c12daae 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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