File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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/
97permissions :
108 contents : read
11- id-token : write # required for OIDC Trusted Publishing
129
1310jobs :
1411 deploy :
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
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}"
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 }}
You can’t perform that action at this time.
0 commit comments