Skip to content

Bulk asynchronous downloader for multiple file hosts

Update publish-to-pypi.yaml

Jacobf29618d37674
diff --git a/.github/workflows/publish-to-pypi.yaml b/.github/workflows/publish-to-pypi.yaml
index 5aec4bf80..e60995db1 100644
--- a/.github/workflows/publish-to-pypi.yaml
+++ b/.github/workflows/publish-to-pypi.yaml
@@ -41,16 +41,18 @@ jobs:
git config user.email "[email protected]"
git tag ${{ env.version }}
git push origin ${{ env.version }}
- echo "ref is ${{ github.ref }}"
- echo "event name is ${{ github.event_name }}"
- echo "version is ${{ env.version }}" # Output the version for debugging
+
+ - name: Checkout Tag
+ if: ${{ github.ref == 'refs/heads/master' && env.version != '' }}
+ run: |
+ git fetch --tags
+ git checkout "refs/tags/${{ env.version }}" # Checkout the newly created tag
+ echo "Checked out tag ${{ env.version }}"
- name: Build project for distribution
- if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
run: poetry build
- name: Publish to PyPI
- if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
run: poetry publish