Publish now on any v* tag pushed to PyPI branch

preserve-order
Andrew Port 2021-11-09 20:26:36 -08:00
parent 5b9ee30544
commit 3576591e08
1 changed files with 6 additions and 2 deletions

View File

@ -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 }}