44 release :
55 types : [published]
66
7+ permissions : {}
8+
79jobs :
810 build :
911 name : Build Wheel
1012 runs-on : windows-latest
1113
1214 steps :
13- - uses : actions/checkout@v6
15+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1416 with :
1517 fetch-depth : 0
18+ persist-credentials : false
1619 - name : Set up Python
17- uses : actions/setup-python@v6
20+ uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
1821 with :
19- python-version : " 3.12 "
22+ python-version : " 3.13 "
2023 - name : Install pypa/build
2124 run : >-
2225 python3 -m
2629 - name : Build a binary wheel and a source tarball
2730 run : python3 -m build
2831 - name : Store the distribution packages
29- uses : actions/upload-artifact@v6
32+ uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
3033 with :
3134 name : python-package-distributions
3235 path : dist/
@@ -45,12 +48,12 @@ jobs:
4548
4649 steps :
4750 - name : Download all the dists
48- uses : actions/download-artifact@v7
51+ uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
4952 with :
5053 name : python-package-distributions
5154 path : dist/
5255 - name : Publish distribution 📦 to PyPI
53- uses : pypa/gh-action-pypi-publish@release/v1
56+ uses : pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
5457
5558 github-release :
5659 name : >-
@@ -66,12 +69,12 @@ jobs:
6669
6770 steps :
6871 - name : Download all the dists
69- uses : actions/download-artifact@v7
72+ uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
7073 with :
7174 name : python-package-distributions
7275 path : dist/
7376 - name : Sign the dists with Sigstore
74- uses : sigstore/gh-action-sigstore-python@v3.2.0
77+ uses : sigstore/gh-action-sigstore-python@a5caf349bc536fbef3668a10ed7f5cd309a4b53d # v3.2.0
7578 with :
7679 release-signing-artifacts : false
7780 inputs : >-
@@ -80,10 +83,11 @@ jobs:
8083 - name : Upload artifact signatures to GitHub Release
8184 env :
8285 GITHUB_TOKEN : ${{ github.token }}
86+ shell : bash
8387 # Upload to GitHub Release using the `gh` CLI.
8488 # `dist/` contains the built packages, and the
8589 # sigstore-produced signatures and certificates.
8690 run : >-
8791 gh release upload
88- '${{ github.ref_name }}' dist/**
89- --repo '${{ github.repository }}'
92+ "${GITHUB_REF_NAME}" dist/**
93+ --repo "${GITHUB_REPOSITORY}"
0 commit comments