From 65a9aa27be098028bd248dd0df1640f0ea1f68e9 Mon Sep 17 00:00:00 2001 From: vigneshk-tw Date: Tue, 22 Oct 2024 16:16:59 +0530 Subject: [PATCH] deploy to pypi instead of test instance --- .github/workflows/publish.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 68ace87..10f9e1b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,6 +2,7 @@ name: Publish on: release: types: [published] + push: jobs: publish: @@ -35,11 +36,5 @@ jobs: env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_APIKEY }} - run: | - if [[ "${{ github.event.release.name }}" == *"alpha"* || "${{ github.event.release.name }}" == *"beta"* ]]; then - TWINE_PASSWORD: ${{ secrets.PYPI_APIKEY }} twine upload --repository-url https://test.pypi.org/legacy/ dist/* --verbose - else - TWINE_PASSWORD: ${{ secrets.PYPI_APIKEY }} - twine upload dist/* --verbose - fi + run: twine upload dist/* --verbose working-directory: xero-python