Skip to content

Commit

Permalink
add push to real pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
ctuguinay committed Oct 2, 2023
1 parent 2ee2ba2 commit dfaa703
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,25 @@ jobs:
echo "=== Testing wheel file ==="
# Install wheel to get dependencies and check import
python -m pip install --extra-index-url https://test.pypi.org/simple --upgrade --pre echoregions
python -c "import echoregions; print(echoregions.__version__)"
python -c "import echoregions;"
echo "=== Done testing wheel file ==="
echo "=== Testing source tar file ==="
# Install tar gz and check import
python -m pip uninstall --yes echoregions
python -m pip install --extra-index-url https://test.pypi.org/simple --upgrade --pre --no-binary=:all: echoregions
python -c "import echoregions; print(echoregions.__version__)"
python -c "import echoregions;"
echo "=== Done testing source tar file ==="
publish-pypi:
name: Push echoregions to production pypi
needs: test-built-dist
if: startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: releases
path: dist
- name: Publish to PyPI
uses: pypa/[email protected]

0 comments on commit dfaa703

Please sign in to comment.