From d63f1bfbfb60fcc7fc54d185bc35cfa981fb31ed Mon Sep 17 00:00:00 2001 From: WeberJulian Date: Thu, 30 Jun 2022 10:45:47 +0200 Subject: [PATCH] Add test pypi upload --- .github/workflows/pypi-release.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml index c020144f..5357fc53 100644 --- a/.github/workflows/pypi-release.yml +++ b/.github/workflows/pypi-release.yml @@ -80,3 +80,17 @@ jobs: path: "dist/" - run: | ls -lh dist/ + - name: Setup PyPI config + run: | + cat << EOF > ~/.pypirc + [pypi] + username=__token__ + password=${{ secrets.TEST_PYPI_TOKEN }} + EOF + - uses: actions/setup-python@v2 + with: + python-version: 3.8 + - run: | + python -m pip install twine + - run: | + twine upload --repository testpypi dist/*