Skip to content

Commit

Permalink
ci: add step to upload unfurl package to test.pypi.org
Browse files Browse the repository at this point in the history
  • Loading branch information
aszs committed Nov 21, 2024
1 parent 31a9b8f commit b5b7bd8
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -432,20 +432,17 @@ jobs:
- run: pip install twine
- run: twine check dist/*

publish_pypi:
needs: publish_dockerhub
if: needs.publish_dockerhub.outputs.release
runs-on: ubuntu-latest
steps:
- name: fetch repo
uses: actions/checkout@v3
- name: release to test pypi
uses: pypa/[email protected]
with:
submodules: recursive
fetch-depth: 0
- name: build python package
run: python setup.py sdist bdist_wheel
user: __token__
password: ${{ secrets.TEST_PYPI }}
verbose: true
repository-url: https://test.pypi.org/legacy/

- name: release to pypi
uses: pypa/[email protected]
if: needs.publish_dockerhub.outputs.release
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI }}
Expand Down

0 comments on commit b5b7bd8

Please sign in to comment.