Skip to content

Commit

Permalink
fix PyPi publish
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrofran12 committed Apr 14, 2022
1 parent 5a45b31 commit 6b4dc23
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
deploy:
runs-on: ubuntu-latest
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up Python
Expand All @@ -16,12 +16,15 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install setuptools wheel twine auditwheel
sudo apt install libpcap-dev
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
auditwheel repair dist/*.whl
mv wheelhouse/* dist
rm dist/*.whl
twine upload dist/*

0 comments on commit 6b4dc23

Please sign in to comment.