File tree Expand file tree Collapse file tree 2 files changed +14
-19
lines changed
Expand file tree Collapse file tree 2 files changed +14
-19
lines changed Original file line number Diff line number Diff line change 1- name : Publish Python Package
1+ name : Publish to PyPI
22
33on :
44 push :
55 tags :
6- - ' v*' # only run when a tag like v1.0.0 is pushed
6+ - ' v*'
77
88jobs :
9- build-n- publish :
9+ publish :
1010 runs-on : ubuntu-latest
11-
11+ permissions :
12+ id-token : write
13+ contents : read
14+ environment :
15+ name : pypi
1216 steps :
13- - name : Check out code
14- uses : actions/checkout@v4
15-
16- - name : Set up Python
17- uses : actions/setup-python@v5
17+ - uses : actions/checkout@v4
18+ - uses : actions/setup-python@v5
1819 with :
1920 python-version : ' 3.12'
20-
21- - name : Install build dependencies
22- run : |
23- python -m pip install --upgrade pip
24- pip install build twine
25-
26- - name : Build package
27- run : python -m build
28-
29- - name : Publish to PyPI
21+ - run : |
22+ pip install build
23+ python -m build
24+ - name : Publish package to PyPI
3025 uses : pypa/gh-action-pypi-publish@release/v1
File renamed without changes.
You can’t perform that action at this time.
0 commit comments