From 6e1270a9be781ee08e0fb19f0fd24d2c2c7d8a80 Mon Sep 17 00:00:00 2001 From: sangeet-joy_xero Date: Wed, 23 Oct 2024 12:13:59 +0530 Subject: [PATCH] ci: clean up --- .github/workflows/publish.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1830ebc..1b045ba 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,9 +2,6 @@ name: Publish on: release: types: [published] - pull_request: - branches: - - master jobs: publish: @@ -45,16 +42,16 @@ jobs: env: GH_TOKEN: ${{secrets.GITHUB_TOKEN}} - # - name: Build Package - # run: python setup.py sdist - # working-directory: xero-python + - name: Build Package + run: python setup.py sdist + working-directory: xero-python - # - name: Publish to PyPi - # env: - # TWINE_USERNAME: __token__ - # TWINE_PASSWORD: ${{ secrets.PYPI_APIKEY }} - # run: twine upload dist/* - # working-directory: xero-python + - name: Publish to PyPi + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_APIKEY }} + run: twine upload dist/* + working-directory: xero-python notify-slack-on-success: runs-on: ubuntu-latest