From 30ef9ed5154465096fa1ff43432383e12344d915 Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Sun, 21 Mar 2021 02:01:14 +0000 Subject: [PATCH] gha: Try twine for testPyPi --- .github/workflows/build_wailord.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_wailord.yml b/.github/workflows/build_wailord.yml index 95ea53d..71306ce 100644 --- a/.github/workflows/build_wailord.yml +++ b/.github/workflows/build_wailord.yml @@ -19,16 +19,13 @@ jobs: with: poetry-version: ${{ matrix.poetry-version }} - name: Prep dependencies - run: poetry install + run: poetry add twine && poetry install - name: Test project run: poetry run pytest - name: Build project run: poetry build - name: Publish distribution 📦 to Test PyPI - uses: pypa/gh-action-pypi-publish@master - with: - password: ${{ secrets.TEST_PYPI_API_TOKEN }} - repository_url: https://test.pypi.org/legacy/ + run: poetry run twine upload --non-interactive -u rgoswami -p ${{ secrets.TEST_PYPI_API_TOKEN }} -r testpypi dist/* - name: Publish distribution 📦 to PyPI if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@master