Skip to content

Commit

Permalink
Add sdist in release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqm committed Oct 8, 2023
1 parent 32750a3 commit a6e6680
Showing 1 changed file with 14 additions and 25 deletions.
39 changes: 14 additions & 25 deletions .github/workflows/pypi_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,17 @@ jobs:
export TWINE_PASSWORD="${{ secrets.PYPI_API_TOKEN }}"
twine upload --verbose "${{ github.workspace }}/wheelhouse/*"
# release-pypi-cibuildwheel:
# name: Build wheels with cibuildwheel
# strategy:
# matrix:
# python-version: ["3.9"]
# runs-on: ubuntu-20.04
# steps:
# - uses: actions/checkout@v3
# # Used to host cibuildwheel
# - uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install cibuildwheel
# run: python -m pip install cibuildwheel==2.16.0
# - name: Build wheels
# run: python -m cibuildwheel --output-dir wheelhouse
# # to supply options, put them in 'env', like:
# env:
# CIBW_BUILD: cp39-manylinux_x86_64
# - name: Publish to PyPI
# run: |
# pip install twine
# export TWINE_USERNAME=__token__
# export TWINE_PASSWORD="${{ secrets.PYPI_API_TOKEN }}"
# twine upload --verbose /wheelhouse/*
release-pypi-sdist:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build sdist
run: |
python3 setup.py sdist
- name: Publish to PyPI
run: |
pip install twine
export TWINE_USERNAME=__token__
export TWINE_PASSWORD="${{ secrets.PYPI_API_TOKEN }}"
twine upload --verbose "${{ github.workspace }}/dist/*"

0 comments on commit a6e6680

Please sign in to comment.