Publish now on any v* tag pushed to PyPI branch
parent
5b9ee30544
commit
3576591e08
|
@ -2,7 +2,11 @@ name: Publish to TestPyPI and if new version PyPI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches:
|
||||||
|
- PyPI
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-n-publish:
|
build-n-publish:
|
||||||
name: Build and publish to TestPyPI and PyPI
|
name: Build and publish to TestPyPI and PyPI
|
||||||
|
@ -37,4 +41,4 @@ jobs:
|
||||||
if: startsWith(github.ref, 'refs/tags')
|
if: startsWith(github.ref, 'refs/tags')
|
||||||
uses: pypa/gh-action-pypi-publish@master
|
uses: pypa/gh-action-pypi-publish@master
|
||||||
with:
|
with:
|
||||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
|
|
Loading…
Reference in New Issue