Skip to content

Commit 65a9aa2

Browse files
committed
deploy to pypi instead of test instance
1 parent 1de299a commit 65a9aa2

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Publish
22
on:
33
release:
44
types: [published]
5+
push:
56

67
jobs:
78
publish:
@@ -35,11 +36,5 @@ jobs:
3536
env:
3637
TWINE_USERNAME: __token__
3738
TWINE_PASSWORD: ${{ secrets.PYPI_APIKEY }}
38-
run: |
39-
if [[ "${{ github.event.release.name }}" == *"alpha"* || "${{ github.event.release.name }}" == *"beta"* ]]; then
40-
TWINE_PASSWORD: ${{ secrets.PYPI_APIKEY }} twine upload --repository-url https://test.pypi.org/legacy/ dist/* --verbose
41-
else
42-
TWINE_PASSWORD: ${{ secrets.PYPI_APIKEY }}
43-
twine upload dist/* --verbose
44-
fi
39+
run: twine upload dist/* --verbose
4540
working-directory: xero-python

0 commit comments

Comments
 (0)