Skip to content

Commit

Permalink
Update python-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MirkoZanon authored Jul 27, 2024
1 parent 122e38f commit 9920a4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: actions/checkout@v3

# Step 2: Set up Python environment
- name: Set up Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x' # Specify the Python version
Expand All @@ -41,7 +41,7 @@ jobs:
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} # Use the PyPI API token stored as a secret
run: |
# Extract the version from the tag
TAG_NAME=$(echo "${GITHUB_REF#refs/tags/}") # Get the tag name without "refs/tags/"
TAG_NAME="${GITHUB_REF#refs/tags/}" # Get the tag name without "refs/tags/"
VERSION="${TAG_NAME#v}" # Remove the 'v' prefix
echo "Version extracted from tag: $VERSION"
Expand Down

0 comments on commit 9920a4e

Please sign in to comment.