From e776cc016bcca18545ae5fbd8bb9ae505c76bf66 Mon Sep 17 00:00:00 2001 From: anish-mudaraddi Date: Wed, 4 Dec 2024 13:50:33 +0000 Subject: [PATCH] fix build-package action no need for version.txt --- .github/workflows/build_package.yml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build_package.yml b/.github/workflows/build_package.yml index d73d940..99c8080 100644 --- a/.github/workflows/build_package.yml +++ b/.github/workflows/build_package.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: version: - description: 'Version to release' + description: 'Version to release - make sure its same as setup.py' required: true changelog: description: 'Release changelog description' @@ -29,10 +29,6 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Update version in setup.py - run: | - sed -i "s/version=.*,/version='${{ github.event.inputs.version }}',/" setup.py - - name: Install dependencies run: | python -m pip install --upgrade pip @@ -70,14 +66,9 @@ jobs: fi - name: Create Git Tag - run: | - git config user.name github-actions - git config user.email github-actions@github.com - git add version.txt - git commit -m "Bump version to ${{ github.event.inputs.version }}" - git tag v${{ github.event.inputs.version }} - git push origin main - git push origin v${{ github.event.inputs.version }} + uses: EndBug/latest-tag@latest + with: + tag-name: v${{ github.event.inputs.version }} - name: Create GitHub Release uses: softprops/action-gh-release@v1