Skip to content

Commit

Permalink
enable twine
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobdenobel committed Nov 3, 2023
1 parent 356889b commit 6f69a98
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine ninja mypy pybind11
# - name: Build and publish
# env:
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
# run: |
# python setup.py bdist_wheel
# twine upload dist/*
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py bdist_wheel
twine upload dist/*
publish-unix:
runs-on: ubuntu-latest
Expand All @@ -56,12 +56,12 @@ jobs:
uses: RalfG/[email protected]_x86_64
with:
system-packages: 'ninja-build'
# - name: Publish manylinux
# env:
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
# run: |
# twine upload dist/*-manylinux*.whl
- name: Publish manylinux
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload dist/*-manylinux*.whl
publish-source:
runs-on: ubuntu-latest
Expand All @@ -79,11 +79,11 @@ jobs:
sudo apt install ninja-build -y
python -m pip install --upgrade pip
pip install setuptools wheel twine mypy pybind11
# - name: Build and publish
# env:
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
# run: |
# python setup.py sdist
# twine upload dist/*.tar.gz
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist
twine upload dist/*.tar.gz

0 comments on commit 6f69a98

Please sign in to comment.