Skip to content

Commit

Permalink
Add build sdist and upload to ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeZiminski committed Nov 3, 2023
1 parent e557f3c commit ac0b980
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: build wheels

on: [push, pull_request]
on: [push, pull_request] # TODO: on release with tags

jobs:
build_wheels:
Expand All @@ -22,4 +22,36 @@ jobs:

- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
path: ./wheelhouse/*.whl

make_sdist:
name: Make SDist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Optional, use if you use setuptools_scm
submodules: true # Optional, use if you have submodules

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

- uses: actions/upload-artifact@v3
with:
path: dist/*.tar.gz

upload_all:
needs: [build_wheels, make_sdist]
environment: pypi
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist

# - uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit ac0b980

Please sign in to comment.