Skip to content

Commit 84c14a1

Browse files
committed
update package release action to use github release to host
1 parent a6a1635 commit 84c14a1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/build-packages.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- name: Create GitHub Release for pyodide_bucket.bzl
5757
uses: ncipollo/release-action@v1
5858
with:
59-
artifacts: "packages/pyodide_bucket.bzl"
59+
artifacts: "packages/pyodide_bucket.bzl, packages/dist/pyodide-lock.json, packages/dist/pyodide-packages.tar.zip"
6060
token: ${{ secrets.GITHUB_TOKEN }}
6161
tag: ${{ inputs.tag }}
6262
body: "Generated Bazel config file for release ${{ inputs.tag }}. Replace this file in workerd/build to update the Pyodide package bundle."

packages/script.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ def normalize(name):
1919

2020
def gen_bzl_config(tag, dist):
2121
bucket_url = "https://pub-45d734c4145d4285b343833ee450ef38.r2.dev/" + tag + "/"
22+
github_url = "https://github.com/cloudflare/pyodide-build-scripts/releases/download/" + tag + "/"
2223
lock_bytes = (dist / "pyodide-lock.json").read_bytes()
2324
lock_hash = hashlib.sha256(lock_bytes).hexdigest()
2425
zip_bytes = (dist / "pyodide_packages.tar.zip").read_bytes()
@@ -29,6 +30,7 @@ def gen_bzl_config(tag, dist):
2930
f.write("# These variables are factored out here because they are being shared by the WORKSPACE files in\n")
3031
f.write("# both edgeworker and workerd, as well as src/pyodide/BUILD.bazel\n")
3132
f.write("PYODIDE_PACKAGE_BUCKET_URL = \"" + bucket_url + "\"\n")
33+
f.write("PYODIDE_GITHUB_RELEASE_URL = \"" + github_url + "\"\n")
3234
f.write("PYODIDE_LOCK_SHA256 = \"" + lock_hash + "\"\n")
3335
f.write("PYODIDE_PACKAGES_TAR_ZIP_SHA256 = \"" + zip_hash + "\"\n")
3436

0 commit comments

Comments
 (0)