Skip to content

Commit 9fc2708

Browse files
Merge branch 'USF-org:main' into main
2 parents c388559 + 5c30a0a commit 9fc2708

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/python-publish.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828

2929
- name: Build release distributions
3030
run: |
31+
# NOTE: put your own distribution build steps here.
3132
python -m pip install build
3233
python -m build
3334
@@ -42,11 +43,19 @@ jobs:
4243
needs:
4344
- release-build
4445
permissions:
46+
# IMPORTANT: this permission is mandatory for trusted publishing
4547
id-token: write
4648

49+
# Dedicated environments with protections for publishing are strongly recommended.
50+
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
4751
environment:
4852
name: pypi
49-
url: https://pypi.org/project/usf/
53+
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
54+
# url: https://pypi.org/project/usf/
55+
#
56+
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
57+
# ALTERNATIVE: exactly, uncomment the following line instead:
58+
url: https://pypi.org/project/usf/${{ github.event.release.name }}
5059

5160
steps:
5261
- name: Retrieve release distributions
@@ -59,5 +68,3 @@ jobs:
5968
uses: pypa/gh-action-pypi-publish@release/v1
6069
with:
6170
packages-dir: dist/
62-
username: __token__
63-
password: ${{ secrets.USF_Python }}

0 commit comments

Comments
 (0)