Skip to content

Commit 98a1b70

Browse files
authored
Merge pull request #539 from Blosc/testing_wasm
Testing wasm build
2 parents bd3f68b + e785edb commit 98a1b70

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.github/workflows/wasm.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Python wheels for WASM
1+
name: Python wheels for WASM upload
22
on:
33
push:
44
tags:
@@ -50,7 +50,7 @@ jobs:
5050
run: cibuildwheel --platform pyodide
5151

5252
- name: Publish wheels to orphan `wheels` branch
53-
# if: startsWith(github.ref, 'refs/tags/')
53+
if: startsWith(github.ref, 'refs/tags/')
5454
env:
5555
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5656
run: |
@@ -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)