File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 11name : Upload Python Package
2-
32on :
43 push :
54 branches :
6- - main
7-
5+ - master
86permissions :
97 contents : write
108 id-token : write
119 actions : write
1210 packages : write
13-
1411jobs :
1512 release :
1613 runs-on : ubuntu-latest
1714 steps :
18- - name : Checkout main branch
15+ - name : Checkout master branch
1916 uses : actions/checkout@v4
2017 with :
2118 fetch-depth : 0
22-
2319 - name : Set up Python
2420 uses : actions/setup-python@v3
2521 with :
2622 python-version : " 3.x"
27-
2823 - name : Install dependencies
2924 run : |
3025 python -m pip install --upgrade pip
3126 pip install build twine python-semantic-release setuptools-scm
32-
3327 - name : Run semantic-release
3428 env :
3529 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3832 git config user.email github-actions@github.com
3933 semantic-release version
4034 semantic-release publish
41-
4235 - name : Build package
4336 run : python -m build
44-
4537 - name : Publish package to PyPI
4638 env :
4739 TWINE_USERNAME : __token__
You can’t perform that action at this time.
0 commit comments