From 7aec62c2fb4020f509c7a81776c36cb7e26d4f3c Mon Sep 17 00:00:00 2001 From: Simon Conseil Date: Sun, 11 Oct 2020 18:19:01 -0300 Subject: [PATCH] Run for tags and use TestPyPI for now --- .github/workflows/publish.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b39ec93..22380fc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 }}