Skip to content

Commit

Permalink
deploy to pypi instead of test instance
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshk-tw committed Oct 22, 2024
1 parent 1de299a commit 65a9aa2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Publish
on:
release:
types: [published]
push:

jobs:
publish:
Expand Down Expand Up @@ -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

0 comments on commit 65a9aa2

Please sign in to comment.