File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 56
56
- name : Create GitHub Release for pyodide_bucket.bzl
57
57
uses : ncipollo/release-action@v1
58
58
with :
59
- artifacts : " packages/pyodide_bucket.bzl"
59
+ artifacts : " packages/pyodide_bucket.bzl, packages/dist/pyodide-lock.json, packages/dist/pyodide-packages.tar.zip "
60
60
token : ${{ secrets.GITHUB_TOKEN }}
61
61
tag : ${{ inputs.tag }}
62
62
body : " Generated Bazel config file for release ${{ inputs.tag }}. Replace this file in workerd/build to update the Pyodide package bundle."
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ def normalize(name):
19
19
20
20
def gen_bzl_config (tag , dist ):
21
21
bucket_url = "https://pub-45d734c4145d4285b343833ee450ef38.r2.dev/" + tag + "/"
22
+ github_url = "https://github.com/cloudflare/pyodide-build-scripts/releases/download/" + tag + "/"
22
23
lock_bytes = (dist / "pyodide-lock.json" ).read_bytes ()
23
24
lock_hash = hashlib .sha256 (lock_bytes ).hexdigest ()
24
25
zip_bytes = (dist / "pyodide_packages.tar.zip" ).read_bytes ()
@@ -29,6 +30,7 @@ def gen_bzl_config(tag, dist):
29
30
f .write ("# These variables are factored out here because they are being shared by the WORKSPACE files in\n " )
30
31
f .write ("# both edgeworker and workerd, as well as src/pyodide/BUILD.bazel\n " )
31
32
f .write ("PYODIDE_PACKAGE_BUCKET_URL = \" " + bucket_url + "\" \n " )
33
+ f .write ("PYODIDE_GITHUB_RELEASE_URL = \" " + github_url + "\" \n " )
32
34
f .write ("PYODIDE_LOCK_SHA256 = \" " + lock_hash + "\" \n " )
33
35
f .write ("PYODIDE_PACKAGES_TAR_ZIP_SHA256 = \" " + zip_hash + "\" \n " )
34
36
You can’t perform that action at this time.
0 commit comments