File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,18 @@ jobs:
1919 with :
2020 python-version : " 3.10"
2121
22+ - name : Install dependencies
23+ run : |
24+ python -m pip install --upgrade pip
25+ python -m pip install setuptools wheel
26+
2227 - name : check-version
23- run : echo ::set_output name=version::$(python setup.py --version)
28+ run : |
29+ echo "VERSION=$(python setup.py --version)" >> $GITHUB_OUTPUT
30+ id: version
2431
2532 - name : create python package
26- run : python setup.py bdist_wheel
33+ run : python setup.py sdist bdist_wheel
2734
2835 - name : Create Release
2936 uses : ncipollo/release-action@v1
@@ -32,10 +39,11 @@ jobs:
3239 token : ${{ secrets.GITHUB_TOKEN }}
3340 draft : false
3441 generateReleaseNotes : true
35- tag : v${{ steps.check- version.outputs.version }}
36- commit : master
42+ tag : v${{ steps.version.outputs.VERSION }}
43+ commit : main
3744
38- - uses : pypa/gh-action-pypi-publish@release/v1
45+ - name : deploy
46+ uses : pypa/gh-action-pypi-publish@release/v1
3947 with :
4048 user : __token__
4149 password : ${{ secrets.PYPI }}
You can’t perform that action at this time.
0 commit comments