mirror of
https://gitcode.com/gh_mirrors/gh/gh-action-pypi-publish.git
synced 2026-07-02 18:27:49 +00:00
@@ -30,7 +30,7 @@ filter to the step:
|
|||||||
|
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
||||||
```
|
```
|
||||||
|
|
||||||
So the full step would look like:
|
So the full step would look like:
|
||||||
@@ -38,7 +38,7 @@ So the full step would look like:
|
|||||||
|
|
||||||
```yml
|
```yml
|
||||||
- name: Publish package
|
- name: Publish package
|
||||||
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
||||||
uses: pypa/gh-action-pypi-publish@master
|
uses: pypa/gh-action-pypi-publish@master
|
||||||
with:
|
with:
|
||||||
user: __token__
|
user: __token__
|
||||||
|
|||||||
Reference in New Issue
Block a user