From c4af9043427f162a5bd1fc39bbba9e7b37b7c111 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Thu, 23 Sep 2021 14:00:55 +0200 Subject: [PATCH] pyln: Add production publication on tag push --- .github/workflows/pypi.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 544913448..b112d6ae3 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -47,8 +47,13 @@ jobs: repository_url: https://test.pypi.org/legacy/ packages_dir: "${{ env.WORKDIR}}/dist" skip_existing: true -# - name: Publish distribution 📦 to PyPI -# if: startsWith(github.ref, 'refs/tags') -# uses: pypa/gh-action-pypi-publish@master -# with: -# password: ${{ secrets.PYPI_API_TOKEN }} + - name: Publish distribution 📦 to PyPI + if: startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@master + env: + WORKDIR: ${{ matrix.WORKDIR }} + with: + password: ${{ secrets.PYPI_API_TOKEN }} + packages_dir: "${{ env.WORKDIR}}/dist" + # We should never have a conflict here, the version tags are unique + skip_existing: false