Skip to content

Commit

Permalink
Auto change version
Browse files Browse the repository at this point in the history
  • Loading branch information
dyakovri committed Aug 3, 2024
1 parent bd5c0f0 commit 2ae681c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/deploy_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ jobs:
with:
python-version: "3.11"

- name: Change version
run: |
VERSION=${{ github.ref_name }}
sed -i -e "s/__version__ = '1.0.0'/__version__ = '${VERSION:1}'/g" ${{ github.workspace }}/profcomff_definitions/__init__.py
- name: Install dependencies
run: |
python -m ensurepip
Expand All @@ -92,3 +98,4 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
skip-existing: true
2 changes: 1 addition & 1 deletion profcomff_definitions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys


__version__ = '2024.05.10'
__version__ = '1.0.0' # Не менять, работает автоматика


dir_path = os.path.dirname(os.path.abspath(__file__))
Expand Down

0 comments on commit 2ae681c

Please sign in to comment.