Skip to content

Commit f5232f8

Browse files
committed
resolve rest
1 parent 94eddf6 commit f5232f8

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/pypi_publish.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ jobs:
3232
- name: Build the dist files
3333
run: python -m build
3434

35+
- name: Validate dist metadata
36+
run: |
37+
pip install twine
38+
twine check --strict dist/*
39+
3540
- name: Install from built wheel
3641
run: pip install dist/*.whl
3742

@@ -45,25 +50,29 @@ jobs:
4550
python -c "from diffusers import *"
4651
4752
- name: Upload build artifacts
48-
uses: actions/upload-artifact@v4
53+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
4954
with:
5055
name: python-dist
5156
path: dist/
5257

5358
publish-to-pypi:
5459
needs: build-and-test
5560
if: startsWith(github.ref, 'refs/tags/')
56-
runs-on: ubuntu-22.04
61+
runs-on: ubuntu-latest
5762
environment: pypi-release
5863
permissions:
5964
id-token: write
6065

6166
steps:
67+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
68+
6269
- name: Download build artifacts
63-
uses: actions/download-artifact@v4
70+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
6471
with:
6572
name: python-dist
6673
path: dist/
6774

68-
- name: Publish to PyPI
69-
uses: pypa/gh-action-pypi-publish@release/v1
75+
- name: Publish package distributions to TestPyPI
76+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1
77+
with:
78+
verbose: true

0 commit comments

Comments
 (0)