Skip to content

Commit

Permalink
Switch to extracting version from __init__.py in GitHub workflow (#80)
Browse files Browse the repository at this point in the history
Co-authored-by: Saibo MBP <guncyber@yahoo.com>
  • Loading branch information
Saibo-creator and Saibo MBP authored Aug 22, 2024
1 parent 0cfff46 commit f291b56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/pipy_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ jobs:
- name: Extract tag name
id: tag
run: echo ::set-output name=TAG_NAME::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Update version in setup.py
run: >-
sed -i "s/{{VERSION_PLACEHOLDER}}/${{ steps.tag.outputs.TAG_NAME }}/g" setup.py
- name: Extract version from __init__.py
id: get_version
run: |
VERSION=$(grep '__version__' your_package/__init__.py | cut -d'"' -f2)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Build a binary wheel
run: >-
python setup.py sdist bdist_wheel
Expand Down
2 changes: 1 addition & 1 deletion transformers_cfg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

setup_logging()

__version__ = "0.2.1"
__version__ = "0.2.2"

0 comments on commit f291b56

Please sign in to comment.