-
-
Notifications
You must be signed in to change notification settings - Fork 436
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: artifact@4, with required immutability changes
https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md with discussion here: actions/upload-artifact#472
- Loading branch information
Showing
4 changed files
with
91 additions
and
37 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
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 |
---|---|---|
|
@@ -49,6 +49,8 @@ jobs: | |
wheels: | ||
name: "${{ matrix.py }} ${{ matrix.os }} ${{ matrix.arch }} wheels" | ||
runs-on: ${{ matrix.os }}-latest | ||
env: | ||
MATRIX_ID: "${{ matrix.py }}-${{ matrix.os }}-${{ matrix.arch }}" | ||
strategy: | ||
matrix: | ||
include: | ||
|
@@ -173,9 +175,9 @@ jobs: | |
ls -al wheelhouse/ | ||
- name: "Upload wheels" | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: dist | ||
name: dist-${{ env.MATRIX_ID }} | ||
path: wheelhouse/*.whl | ||
retention-days: 7 | ||
|
||
|
@@ -207,9 +209,9 @@ jobs: | |
ls -al dist/ | ||
- name: "Upload sdist" | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: dist | ||
name: dist-sdist | ||
path: dist/*.tar.gz | ||
retention-days: 7 | ||
|
||
|
@@ -245,9 +247,9 @@ jobs: | |
ls -al dist/ | ||
- name: "Upload wheels" | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: dist | ||
name: dist-pypy | ||
path: dist/*.whl | ||
retention-days: 7 | ||
|
||
|
@@ -264,9 +266,10 @@ jobs: | |
id-token: write | ||
steps: | ||
- name: "Download artifacts" | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: dist | ||
pattern: dist-* | ||
merge-multiple: true | ||
|
||
- name: "Sign artifacts" | ||
uses: sigstore/[email protected] | ||
|
@@ -278,7 +281,7 @@ jobs: | |
ls -alR | ||
- name: "Upload signatures" | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: signatures | ||
path: | | ||
|
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
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