File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77# documentation.
88
99name : Upload Python Package
10-
11- runs :
12- using : ' node20'
13- main : ' main.js'
14-
15- on :
16- release :
17- types : [published]
18-
19- permissions :
20- contents : read
21-
2210jobs :
23- deploy :
24-
11+ pypi-publish :
12+ name : Upload release to PyPI
2513 runs-on : ubuntu-latest
26-
14+ environment :
15+ name : pypi
16+ url : https://pypi.org/p/PyAFBF
17+ permissions :
18+ id-token : ${{ secrets.TOKEN_PYPI }}
2719 steps :
28- - uses : actions/checkout@v3
29- - name : Set up Python
30- uses : actions/setup-python@v3
31- with :
32- python-version : ' 3.x'
33- - name : Install dependencies
34- run : |
35- python -m pip install --upgrade pip
36- pip install build
37- - name : Build package
38- run : python -m build
39- - name : Publish package
40- uses : pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
41- with :
42- user : __token__
43- password : ${{ secrets.TOKEN_PYPI }}
20+ # retrieve your distributions here
21+
22+ - name : PyAFBF
23+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments