From add792de30092a6c0b56e832e0b56d243d7bc3c0 Mon Sep 17 00:00:00 2001 From: Marek Otahal Date: Mon, 1 Jun 2020 15:02:26 +0200 Subject: [PATCH] example: for GH Actions use action to publish to PyPI, instead of calling twine directly. --- examples/github-minimal.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/examples/github-minimal.yml b/examples/github-minimal.yml index 2b4e801d..dde844e3 100644 --- a/examples/github-minimal.yml +++ b/examples/github-minimal.yml @@ -35,3 +35,12 @@ jobs: with: name: wheels path: ./wheelhouse + + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@master #see https://github.com/pypa/gh-action-pypi-publish for setup + with: + user: __token__ + password: ${{ secrets.pypi_password }} + repository_url: https://test.pypi.org/legacy/ #TODO rm this line to use the "real" pypi + packages_dir: ./wheelhouse/ +