From d6a9adf74aaaff63afd270ed772ead9d7aade93b Mon Sep 17 00:00:00 2001 From: devanshshukla99 <48386249+devanshshukla99@users.noreply.github.com> Date: Fri, 21 May 2021 20:12:43 +0530 Subject: [PATCH] test release --- .github/workflows/python-publish.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 1eeae68..c2c6999 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -4,6 +4,8 @@ name: PyPI Release on: + push: + branches: [ main ] release: types: [created] @@ -17,15 +19,16 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: '3.x' + python-version: 3.8 - name: Install dependencies run: | python -m pip install --upgrade pip pip install setuptools wheel twine - name: Build and publish env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} run: | python setup.py sdist bdist_wheel + python -m twine upload --repository testpypi dist/* twine upload dist/*