Skip to content

Commit

Permalink
gha: Try twine for testPyPi
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoZeke committed Mar 21, 2021
1 parent 150b5e8 commit 30ef9ed
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/build_wailord.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 30ef9ed

Please sign in to comment.