Skip to content

Commit e776cc0

Browse files
fix build-package action
no need for version.txt
1 parent 4604333 commit e776cc0

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

.github/workflows/build_package.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
version:
7-
description: 'Version to release'
7+
description: 'Version to release - make sure its same as setup.py'
88
required: true
99
changelog:
1010
description: 'Release changelog description'
@@ -29,10 +29,6 @@ jobs:
2929
with:
3030
python-version: ${{ matrix.python-version }}
3131

32-
- name: Update version in setup.py
33-
run: |
34-
sed -i "s/version=.*,/version='${{ github.event.inputs.version }}',/" setup.py
35-
3632
- name: Install dependencies
3733
run: |
3834
python -m pip install --upgrade pip
@@ -70,14 +66,9 @@ jobs:
7066
fi
7167
7268
- name: Create Git Tag
73-
run: |
74-
git config user.name github-actions
75-
git config user.email github-actions@github.com
76-
git add version.txt
77-
git commit -m "Bump version to ${{ github.event.inputs.version }}"
78-
git tag v${{ github.event.inputs.version }}
79-
git push origin main
80-
git push origin v${{ github.event.inputs.version }}
69+
uses: EndBug/latest-tag@latest
70+
with:
71+
tag-name: v${{ github.event.inputs.version }}
8172

8273
- name: Create GitHub Release
8374
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)