From 4006b70cdf44bfe4f7bb3c651b2e95640edbfba8 Mon Sep 17 00:00:00 2001 From: lshaw8317 Date: Thu, 4 Dec 2025 10:55:06 +0100 Subject: [PATCH 1/3] Testing wasm build --- .github/workflows/wasm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml index 57bcc5fc..49fbf037 100644 --- a/.github/workflows/wasm.yml +++ b/.github/workflows/wasm.yml @@ -1,4 +1,4 @@ -name: Python wheels for WASM +name: Python wheels for WASM upload on: push: tags: From 9958869ad305cf097f2b1674e5a8f0a8b62fc71e Mon Sep 17 00:00:00 2001 From: lshaw8317 Date: Thu, 4 Dec 2025 11:12:05 +0100 Subject: [PATCH 2/3] Add authentication --- .github/workflows/wasm.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml index 49fbf037..301ebcba 100644 --- a/.github/workflows/wasm.yml +++ b/.github/workflows/wasm.yml @@ -60,32 +60,28 @@ jobs: mkdir wheels-branch cd wheels-branch - # Fetch existing wheels branch if it exists + # Initialize git repo git init - git remote add origin https://github.com/${{ github.repository }}.git + git remote add origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git git fetch origin wheels || true - # Create an orphan branch (separate history) + # Create orphan branch git checkout --orphan wheels - - # Clear all files in branch git reset --hard - # Add wheels + # Copy wheels mkdir -p wheels cp ../wheelhouse/*.whl wheels/ - echo "Wheels to publish:" ls -lh wheels/ # Commit git config user.name "GitHub Actions" git config user.email "actions@github.com" - git add wheels git commit -m "Update wheels for release ${{ github.ref_name }}" - # Force push as this branch always resets + # Force push git push origin wheels --force From e785edb41688ded94109c71267d1c59c88734a38 Mon Sep 17 00:00:00 2001 From: lshaw8317 Date: Thu, 4 Dec 2025 11:22:11 +0100 Subject: [PATCH 3/3] WASM wheel upload on tagging only --- .github/workflows/wasm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml index 301ebcba..b12e68f1 100644 --- a/.github/workflows/wasm.yml +++ b/.github/workflows/wasm.yml @@ -50,7 +50,7 @@ jobs: run: cibuildwheel --platform pyodide - name: Publish wheels to orphan `wheels` branch - # if: startsWith(github.ref, 'refs/tags/') + if: startsWith(github.ref, 'refs/tags/') env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: |