Skip to content

Commit

Permalink
ci: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeet-joy_xero committed Oct 23, 2024
1 parent 00a2185 commit 6e1270a
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Publish
on:
release:
types: [published]
pull_request:
branches:
- master

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

0 comments on commit 6e1270a

Please sign in to comment.