diff --git a/.github/workflows/deploy_and_publish.yml b/.github/workflows/deploy_and_publish.yml index d00f63e2..1cfd8dc5 100644 --- a/.github/workflows/deploy_and_publish.yml +++ b/.github/workflows/deploy_and_publish.yml @@ -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 @@ -92,3 +98,4 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.PYPI_API_TOKEN }} + skip-existing: true diff --git a/profcomff_definitions/__init__.py b/profcomff_definitions/__init__.py index 262d0562..ebca8d7a 100644 --- a/profcomff_definitions/__init__.py +++ b/profcomff_definitions/__init__.py @@ -2,7 +2,7 @@ import sys -__version__ = '2024.05.10' +__version__ = '1.0.0' # Не менять, работает автоматика dir_path = os.path.dirname(os.path.abspath(__file__))