Skip to content

Commit 50095ad

Browse files
authored
Update python-publish.yml
1 parent fedbeee commit 50095ad

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@ on:
44
release:
55
types: [published]
66

7-
# Trusted Publishing (OIDC) — no API token or password needed.
8-
# Configure at https://pypi.org/manage/project/glyphx/settings/publishing/
97
permissions:
108
contents: read
11-
id-token: write # required for OIDC Trusted Publishing
129

1310
jobs:
1411
deploy:
@@ -18,7 +15,7 @@ jobs:
1815
- name: Check out repository
1916
uses: actions/checkout@v4
2017
with:
21-
fetch-depth: 0 # full history so setuptools_scm can find tags
18+
fetch-depth: 0
2219

2320
- name: Set up Python
2421
uses: actions/setup-python@v5
@@ -31,10 +28,6 @@ jobs:
3128
python -m pip install build "setuptools-scm>=8"
3229
3330
- name: Derive clean version from release tag
34-
# GITHUB_REF_NAME is the tag name on a release event, e.g. "v2.1.0".
35-
# Stripping the leading "v" gives a valid PEP 440 public version.
36-
# Setting SETUPTOOLS_SCM_PRETEND_VERSION prevents any local segment
37-
# from being appended even if git describe produces one.
3831
run: |
3932
TAG="${GITHUB_REF_NAME#v}"
4033
TAG="${TAG#V}"
@@ -56,3 +49,6 @@ jobs:
5649
5750
- name: Publish package to PyPI
5851
uses: pypa/gh-action-pypi-publish@release/v1
52+
with:
53+
user: __token__
54+
password: ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)