Skip to content

Commit

Permalink
Update publish-to-test-pypi-and-pypi.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
rams3sh authored Mar 13, 2024
1 parent d457506 commit 404e8ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/publish-to-test-pypi-and-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
workflow_dispatch:

push:
tags:
- '*'
paths-ignore:
- 'README.md'
- '.gitignore'
Expand Down Expand Up @@ -44,7 +46,7 @@ jobs:
repository_url: https://test.pypi.org/legacy/

- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 404e8ac

Please sign in to comment.