File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ permissions:
1010
1111jobs :
1212 release :
13+ if : github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
1314 runs-on : ubuntu-24.04
1415
1516 steps :
4344 - name : List downloaded files
4445 run : |
4546 echo "Artifacts downloaded:"
46- find artifacts -type f -print
47+ find artifacts -type f -exec readlink -f {} \;
4748
4849 - name : Publish wheel to GitHub PyPI
4950 run : |
@@ -56,13 +57,13 @@ jobs:
5657 github
5758
5859 [github]
59- repository = https://pypi.pkg. github.com/${{ github.repository_owner }}
60+ repository = https://api. github.com/orgs/ ${{ github.repository_owner }}/packages/pypi/upload
6061 username = __token__
6162 password = ${{ secrets.GITHUB_TOKEN }}
6263 EOF
6364
6465 # Upload wheels from artifacts
65- twine upload --repository github artifacts/**/*.whl
66+ twine upload --repository github artifacts/**/**/* .whl
6667
6768 - name : Create GitHub release
6869 uses : softprops/action-gh-release@v2
You can’t perform that action at this time.
0 commit comments