Run for tags and use TestPyPI for now

This commit is contained in:
Simon Conseil
2020-10-11 18:19:01 -03:00
parent 92053f608b
commit 7aec62c2fb

View File

@@ -1,6 +1,8 @@
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
on: push
on:
push:
tags:
jobs:
build-n-publish:
@@ -9,6 +11,8 @@ jobs:
steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
- uses: actions/setup-python@v2
with:
python-version: 3.8
@@ -28,8 +32,8 @@ jobs:
password: ${{ secrets.test_pypi_password }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}
# - name: Publish distribution 📦 to PyPI
# if: startsWith(github.ref, 'refs/tags')
# uses: pypa/gh-action-pypi-publish@master
# with:
# password: ${{ secrets.pypi_password }}