11name : Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
22
33on : push
4+ permissions : {}
45
56jobs :
67 build :
78 name : Build distribution 📦
89 runs-on : ubuntu-latest
910
1011 steps :
11- - uses : actions/checkout@v6
12+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1213 with :
1314 persist-credentials : false
1415 - name : Set up Python
15- uses : actions/setup-python@v6
16+ uses : actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
1617 with :
1718 python-version : " 3.x"
1819 - name : Install pypa/build
2425 - name : Build a binary wheel and a source tarball
2526 run : python3 -m build
2627 - name : Store the distribution packages
27- uses : actions/upload-artifact@v5
28+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
2829 with :
2930 name : python-package-distributions
3031 path : dist/
@@ -44,12 +45,12 @@ jobs:
4445
4546 steps :
4647 - name : Download all the dists
47- uses : actions/download-artifact@v6
48+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
4849 with :
4950 name : python-package-distributions
5051 path : dist/
5152 - name : Publish distribution 📦 to PyPI
52- uses : pypa/gh-action-pypi-publish@release/v1
53+ uses : pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
5354
5455 publish-to-testpypi :
5556 name : Publish Python 🐍 distribution 📦 to TestPyPI
@@ -66,11 +67,11 @@ jobs:
6667
6768 steps :
6869 - name : Download all the dists
69- uses : actions/download-artifact@v6
70+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
7071 with :
7172 name : python-package-distributions
7273 path : dist/
7374 - name : Publish distribution 📦 to TestPyPI
74- uses : pypa/gh-action-pypi-publish@release/v1
75+ uses : pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
7576 with :
7677 repository-url : https://test.pypi.org/legacy/
0 commit comments