Skip to content

Commit ee4fc11

Browse files
committed
CI: update upload-artifact, download-artifact, gh-action-pypi-publish
1 parent 702f61e commit ee4fc11

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run: python -m build
3131

3232
- name: Save built packages as artifact
33-
uses: actions/upload-artifact@v3
33+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
3434
with:
3535
name: packages-${{ runner.os }}-${{ steps.setup.outputs.python-version }}
3636
path: dist/
@@ -46,12 +46,14 @@ jobs:
4646
id-token: write
4747
steps:
4848
- name: Download packages
49-
uses: actions/download-artifact@v3
49+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
50+
with:
51+
pattern: packages-*
52+
path: dist
53+
merge-multiple: true
5054

51-
- name: Consolidate packages for upload
52-
run: |
53-
mkdir dist
54-
cp packages-*/* dist/
55+
- name: Print out packages
56+
run: ls dist
5557

5658
- name: Publish package distributions to PyPI
57-
uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e # v1.8.10
59+
uses: pypa/gh-action-pypi-publish@15c56dba361d8335944d31a2ecd17d700fc7bcbc # v1.12.2

0 commit comments

Comments
 (0)