Skip to content

Commit

Permalink
Restores publishing of source distribution (#139)
Browse files Browse the repository at this point in the history
Fixes #138
  • Loading branch information
stumpylog authored Jan 10, 2023
1 parent c0baeb3 commit c13c43f
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/pypi-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,27 @@ jobs:
name: ${{matrix.os}}-wheels
path: ./wheelhouse/*.whl

build_sdist:
name: Build source dist
runs-on: ubuntu-20.04
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Build sdist
run: |
python3 setup.py sdist
- uses: actions/upload-artifact@v3
with:
name: source-dist
path: ./dist/*.tar.gz

publish:
name: Pypi publish
needs: ['build_wheels']
needs: ['build_wheels', 'build_sdist']
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4
Expand All @@ -64,12 +82,17 @@ jobs:
with:
name: macos-10.15-wheels
path: artifacts/macos
- uses: actions/download-artifact@v3
with:
name: source-dist
path: artifacts/sdist
- name: unify wheel structure
run: |
mkdir dist
cp -R artifacts/windows/* dist
cp -R artifacts/linux/* dist
cp -R artifacts/macos/* dist
cp -R artifacts/sdist/* dist
- name: Publish to Pypi
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit c13c43f

Please sign in to comment.