Skip to content

Commit

Permalink
Merge pull request #660 from jdegenstein/enable_sdist
Browse files Browse the repository at this point in the history
Enable sdist releases on PyPI starting with build123d v0.7.0
  • Loading branch information
jdegenstein authored Jul 25, 2024
2 parents cba77ab + 759e8ac commit 4d00af6
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,24 @@ jobs:
with:
fetch-depth: 0 # get all history for setuptools_scm

- name: Build wheel
- name: Build sdist and wheel
shell: bash
run: |
pwd
ls -lR
python3 -m pip install --upgrade pip
python3 -m pip -V
python3 -m pip wheel -w wheelhouse .
python3 -m pip install build
python3 -m build --outdir wheelhouse
python3 -m pip freeze
ls -lR
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/build123d*.whl # only store the build123d wheel

# Do we need sdist wheel?
# build_sdist:
# name: Build source distribution
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4

# - name: Build sdist
# run: pipx run build --sdist

# - uses: actions/upload-artifact@v3
# with:
# path: dist/*.tar.gz
path: ./wheelhouse/build123d*.* # store the build123d wheel and sdist

upload_pypi:
needs: [build_wheel] #, build_sdist]
needs: [build_wheel]
runs-on: ubuntu-latest
environment:
name: pypi
Expand All @@ -56,7 +44,7 @@ jobs:
if: needs.build_wheel.result == 'success'
#if: (github.repository == 'gumyr/build123d' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v'))
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
# unpacks default artifact into dist/
# if `name: artifact` is omitted, the action will create extra parent dir
Expand Down

0 comments on commit 4d00af6

Please sign in to comment.