Skip to content

Commit aed4e39

Browse files
committed
Fixup release workflow
1 parent 0512e1f commit aed4e39

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ permissions:
1010

1111
jobs:
1212
release:
13+
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
1314
runs-on: ubuntu-24.04
1415

1516
steps:
@@ -43,7 +44,7 @@ jobs:
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

0 commit comments

Comments
 (0)