mirror of
https://github.com/avatartwo/avatar2.git
synced 2026-10-11 22:29:59 +00:00
make action triggers on new tags
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user