Skip to content

Commit 54a1ef0

Browse files
committed
Fix tag & release generation
1 parent 17dcd7f commit 54a1ef0

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,24 @@ jobs:
3232
git config --global user.email "[email protected]"
3333
git commit -m "Switch xmipp from devel to release"
3434
35-
- name: Build and publish
36-
env:
37-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
38-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
39-
run: |
40-
python -m build --no-isolation
41-
twine upload dist/* -c "${{ secrets.PYPI_COMMENT }}"
35+
#- name: Build and publish
36+
# env:
37+
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
38+
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
39+
# run: |
40+
# python -m build --no-isolation
41+
# twine upload dist/* -c "${{ secrets.PYPI_COMMENT }}"
4242

4343
- name: Get changelog, tag name, & release name
4444
id: variables
4545
run:
46-
TAG_NAME=$(grep "_pluginVersion" xmipp3/version.py | sed -E 's/.*"([^"]+)".*/\1/')
47-
RELEASE_NAME="Release ${TAG_NAME}"
46+
VERSION=$(grep "__version__" xmipp3/version.py | sed -E 's/.*"([^"]+)".*/\1/')
47+
TAG_NAME=v$VERSION
48+
RELEASE_NAME="Release ${VERSION}"
4849
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_OUTPUT
50+
echo "RELEASE_NAME=$RELEASE_NAME" >> $GITHUB_OUTPUT
51+
echo "Tag name=$TAG_NAME"
52+
echo "Release name=$RELEASE_NAME"
4953

5054
- name: Generate tag
5155
id: tag_version

0 commit comments

Comments
 (0)