mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 02:30:55 -08:00
publish.yml -> enable sdist build
This commit is contained in:
parent
440841ec34
commit
91eb57d67b
1 changed files with 7 additions and 20 deletions
27
.github/workflows/publish.yml
vendored
27
.github/workflows/publish.yml
vendored
|
|
@ -15,36 +15,23 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # get all history for setuptools_scm
|
fetch-depth: 0 # get all history for setuptools_scm
|
||||||
|
|
||||||
- name: Build wheel
|
- name: Build sdist and wheel
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
pwd
|
pwd
|
||||||
ls -lR
|
ls -lR
|
||||||
python3 -m pip install --upgrade pip
|
python3 -m pip install --upgrade pip
|
||||||
python3 -m pip -V
|
python3 -m pip -V
|
||||||
python3 -m pip wheel -w wheelhouse .
|
python3 -m build --outdir wheelhouse
|
||||||
python3 -m pip freeze
|
python3 -m pip freeze
|
||||||
|
ls -lR
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: ./wheelhouse/build123d*.whl # only store the build123d wheel
|
path: ./wheelhouse/build123d*.* # store the build123d wheel and sdist
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
upload_pypi:
|
upload_pypi:
|
||||||
needs: [build_wheel] #, build_sdist]
|
needs: [build_wheel]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment:
|
environment:
|
||||||
name: pypi
|
name: pypi
|
||||||
|
|
@ -56,7 +43,7 @@ jobs:
|
||||||
if: needs.build_wheel.result == 'success'
|
if: needs.build_wheel.result == 'success'
|
||||||
#if: (github.repository == 'gumyr/build123d' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v'))
|
#if: (github.repository == 'gumyr/build123d' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v'))
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
# unpacks default artifact into dist/
|
# unpacks default artifact into dist/
|
||||||
# if `name: artifact` is omitted, the action will create extra parent dir
|
# if `name: artifact` is omitted, the action will create extra parent dir
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue