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