File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -60,32 +60,28 @@ jobs:
6060 mkdir wheels-branch
6161 cd wheels-branch
6262
63- # Fetch existing wheels branch if it exists
63+ # Initialize git repo
6464 git init
65- git remote add origin https://github.com/${{ github.repository }}.git
65+ git remote add origin https://x-access-token:${GITHUB_TOKEN}@ github.com/${{ github.repository }}.git
6666 git fetch origin wheels || true
6767
68- # Create an orphan branch (separate history)
68+ # Create orphan branch
6969 git checkout --orphan wheels
70-
71- # Clear all files in branch
7270 git reset --hard
7371
74- # Add wheels
72+ # Copy wheels
7573 mkdir -p wheels
7674 cp ../wheelhouse/*.whl wheels/
77-
7875 echo "Wheels to publish:"
7976 ls -lh wheels/
8077
8178 # Commit
8279 git config user.name "GitHub Actions"
8380 git config user.email "[email protected] " 84-
8581 git add wheels
8682 git commit -m "Update wheels for release ${{ github.ref_name }}"
8783
88- # Force push as this branch always resets
84+ # Force push
8985 git push origin wheels --force
9086
9187
You can’t perform that action at this time.
0 commit comments