Skip to content

Commit

Permalink
[FIX] store dist in pkg_dir/dist/ ... compliant down the road ?
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreSchnizer committed Dec 16, 2024
1 parent fbe8256 commit c481ae7
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/pypi_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ jobs:
with:
python-version: "3.x"
- name: Install pypa/build
run: python3 -m pip install build --user
run: python3 -m pip install build --user
- name: Build a source tarball (wheel would have to be manylinux )
run: python3 -m build --sdist ./python/
run: |
python3 -m build --sdist ./python/ --outdir ./dist/
find . -name '*.tar.gz'
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: python/dist/
path: dist/

publish-to-pypi:
name: Publish gtpsa distribution to PyPI
Expand All @@ -40,7 +42,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: python/dist/
path: dist/
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

Expand All @@ -59,11 +61,11 @@ jobs:
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: python/dist/
path: dist/
- name: Sign the dists with Sigstore
uses: sigstore/[email protected]
with:
inputs: ./python/dist/*.tar.gz
inputs: ./dist/*.tar.gz
- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
Expand Down

0 comments on commit c481ae7

Please sign in to comment.