Skip to content

Commit 9958869

Browse files
committed
Add authentication
1 parent 4006b70 commit 9958869

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/wasm.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)