Skip to content

Commit

Permalink
fix versioning in action
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshCu committed Jun 21, 2024
1 parent deb8e2e commit 1c13417
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Upload Python Package to PyPI when a Release is Created

on:
release:
types: [created]
types: [published]

jobs:
pypi-publish:
Expand All @@ -23,6 +23,10 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install setuptools wheel build
- name: Update package version
run: |
sed -i 's/^#version.*/version = "${{ github.event.release.tag_name }}"/g' pyproject.toml
sed -i '/^dynamic.*/d' pyproject.toml
- name: Build package
run: |
python -m build
Expand Down

0 comments on commit 1c13417

Please sign in to comment.