diff --git a/.github/workflows/osxbinary.yml b/.github/workflows/osxbinary.yml index bf823dc0f..343f2dd31 100644 --- a/.github/workflows/osxbinary.yml +++ b/.github/workflows/osxbinary.yml @@ -32,7 +32,12 @@ jobs: - run: make - run: sudo make install - run: make osx-dmg + - run: make dist - uses: actions/upload-artifact@v7 with: name: artifact-osx-14 path: "*.dmg" + - uses: actions/upload-artifact@v7 + with: + name: artifact-source-dist + path: "*.tar.gz" diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index fc6e79b78..c7232128c 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -31,3 +31,24 @@ jobs: - uses: actions/upload-artifact@v7 with: path: ./wheelhouse/*.whl + + sdist: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v7 + - name: Set up Python + uses: actions/setup-python@v7 + with: + python-version: '3.x' + - name: Set up dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build sdist + run: | + python -m build --sdist + - uses: actions/upload-artifact@v7 + with: + name: sdist + path: ./dist/*.tar.gz