-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] store dist in pkg_dir/dist/ ... compliant down the road ?
- Loading branch information
1 parent
fbe8256
commit c481ae7
Showing
1 changed file
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
||
|
@@ -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 }} | ||
|