-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add step to upload unfurl package to test.pypi.org
- Loading branch information
Showing
1 changed file
with
9 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|