File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 77
88permissions :
99 contents : read
10- pull-requests : read # to detect changes files
10+ id-token : write # Required for PyPI trusted publishing (OIDC)
1111
1212jobs :
1313 pypi :
14- name : Pypi
14+ name : Publish to PyPI
1515 runs-on : ubuntu-latest
16+ environment : pypi
1617 steps :
1718 - name : Checkout
1819 uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
20+
1921 - name : Setup
2022 uses : descope/.github/.github/actions/python/poetry/setup@main
2123 with :
2224 python-version : " 3.11"
23- - name : Autobump version
24- run : |
25- poetry version $(git describe --tags --abbrev=0)
25+
26+ - name : Set version from tag
27+ run : poetry version $(git describe --tags --abbrev=0)
28+
2629 - name : Build
2730 uses : descope/.github/.github/actions/python/poetry/build@main
28- - name : Publish
29- uses : descope/.github/.github/actions/python/poetry/publish@main
30- with :
31- token : ${{ secrets.PYPI_TOKEN }}
31+
32+ - name : Publish to PyPI
33+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments