Skip to content

Commit

Permalink
fix build-package action
Browse files Browse the repository at this point in the history
no need for version.txt
  • Loading branch information
anish-mudaraddi committed Dec 4, 2024
1 parent 4604333 commit e776cc0
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/build_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand Down Expand Up @@ -70,14 +66,9 @@ jobs:
fi
- name: Create Git Tag
run: |
git config user.name github-actions
git config user.email [email protected]
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
Expand Down

0 comments on commit e776cc0

Please sign in to comment.