name: _Runtime CDN Upload on: workflow_call: jobs: deploy: name: Cloudflare Pages runs-on: ubuntu-latest permissions: contents: read steps: - uses: actions/checkout@v6 - uses: actions/setup-node@v6 with: node-version: "22" # Download the .wasm already compiled and optimized by _wasm.yml. - name: Download wasm artifact uses: actions/download-artifact@v8 with: name: compiler_lib_wasm path: runtime/ # Stage runtime/ under /js/ so Pages serves it at runtime.edgepython.com/js/*. Reserved siblings: /wasi/ for the future WASI runtime. - name: Stage publish dir run: | mkdir -p _site cp -r runtime _site/js - name: Deploy to Cloudflare Pages uses: cloudflare/wrangler-action@v4 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} # Pin to the Pages production branch. The job only runs on main pushes (gated in pipeline.yml). command: pages deploy _site --project-name=edge-python-runtime --branch=main