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