make action triggers on new tags

This commit is contained in:
sampl
2021-07-26 11:41:26 +02:00
parent 79c11f82f1
commit b66b0b0da9
+5 -4
View File
@@ -1,13 +1,12 @@
name: Publish to PyPI
on:
push:
tag:
- v1.*
create:
jobs:
build-n-publish:
if: github.repository == 'avatartwo/avatar2'
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
runs-on: ubuntu-20.04
steps:
- name: Check out repository code
@@ -17,7 +16,9 @@ jobs:
run: python3 setup.py sdist bdist_wheel
- name: Check package
run: python3 -m twine check dist/*
run: |
pip3 install twine
python3 -m twine check dist/*
- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1