-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use unique names for each Python version
- Loading branch information
Showing
1 changed file
with
39 additions
and
10 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 |
---|---|---|
|
@@ -62,7 +62,7 @@ jobs: | |
- name: Store the distribution packages | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: python-package-distributions | ||
name: dist-${{ matrix.os }}-py${{ matrix.python-version }} | ||
path: dist/ | ||
|
||
publish-to-pypi: | ||
|
@@ -79,11 +79,20 @@ jobs: | |
id-token: write | ||
|
||
steps: | ||
- name: Download all the dists | ||
# - name: Download all the dists | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# name: python-package-distributions | ||
# path: dist/ | ||
- name: Download all artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
path: artifacts | ||
|
||
- name: Move artifacts to dist | ||
run: | | ||
mkdir -p dist/ | ||
find artifacts -name '*.tar.gz' -o -name '*.whl' -exec mv {} dist/ \; | ||
- name: Publish distribution to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
env: | ||
|
@@ -100,12 +109,22 @@ jobs: | |
contents: write | ||
id-token: write | ||
|
||
|
||
steps: | ||
- name: Download all the dists | ||
# - name: Download all the dists | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# name: python-package-distributions | ||
# path: dist/ | ||
- name: Download all artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
path: artifacts | ||
|
||
- name: Move artifacts to dist | ||
run: | | ||
mkdir -p dist/ | ||
find artifacts -name '*.tar.gz' -o -name '*.whl' -exec mv {} dist/ \; | ||
- name: Sign the dists with Sigstore | ||
uses: sigstore/[email protected] | ||
with: | ||
|
@@ -142,12 +161,22 @@ jobs: | |
permissions: | ||
id-token: write | ||
|
||
|
||
steps: | ||
- name: Download all the dists | ||
# - name: Download all the dists | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# name: python-package-distributions | ||
# path: dist/ | ||
- name: Download all artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
path: artifacts | ||
|
||
- name: Move artifacts to dist | ||
run: | | ||
mkdir -p dist/ | ||
find artifacts -name '*.tar.gz' -o -name '*.whl' -exec mv {} dist/ \; | ||
- name: Publish distribution to TestPyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
|