From 8bdd842efac50f721d28c6f76a5867da18ea512b Mon Sep 17 00:00:00 2001 From: Dmitriy Fofanov Date: Wed, 25 Feb 2026 00:01:26 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=BF=D1=80=D0=BE=D1=89=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BA=D0=BE=D0=B4=D0=B0:=20=D1=83=D0=BB=D1=83?= =?UTF-8?q?=D1=87=D1=88=D0=B5=D0=BD=D0=B0=20=D1=87=D0=B8=D1=82=D0=B0=D0=B5?= =?UTF-8?q?=D0=BC=D0=BE=D1=81=D1=82=D1=8C=20=D1=81=D0=BA=D1=80=D0=B8=D0=BF?= =?UTF-8?q?=D1=82=D0=B0=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8=D1=8F?= =?UTF-8?q?=20=D0=B0=D1=80=D1=85=D0=B8=D0=B2=D0=BE=D0=B2=20=D0=B8=D1=81?= =?UTF-8?q?=D1=85=D0=BE=D0=B4=D0=BD=D0=BE=D0=B3=D0=BE=20=D0=BA=D0=BE=D0=B4?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a71eacb..240b4c4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -125,20 +125,20 @@ jobs: ) else ARCHIVE_BASE="${ARCHIVE_BASE}" DIST_DIR="${DIST_DIR}" python3 - <<'PY' - import os - import zipfile + import os + import zipfile - base = os.environ["ARCHIVE_BASE"] - src = os.path.join(".release-work", base) - dst = os.path.join(os.environ["DIST_DIR"], f"{base}.zip") + base = os.environ["ARCHIVE_BASE"] + src = os.path.join(".release-work", base) + dst = os.path.join(os.environ["DIST_DIR"], f"{base}.zip") - with zipfile.ZipFile(dst, "w", zipfile.ZIP_DEFLATED) as zf: + with zipfile.ZipFile(dst, "w", zipfile.ZIP_DEFLATED) as zf: for root, _, files in os.walk(src): - for file_name in files: - full = os.path.join(root, file_name) - arc = os.path.relpath(full, ".release-work") - zf.write(full, arc) - PY + for file_name in files: + full = os.path.join(root, file_name) + arc = os.path.relpath(full, ".release-work") + zf.write(full, arc) + PY fi sha256sum "${DIST_DIR}"/* > "${DIST_DIR}/checksums-sha256.txt" @@ -231,12 +231,13 @@ jobs: HOST="${HOST#http://}" TAG="${{ steps.meta.outputs.tag }}" - BODY_JSON=$(python3 - <<'PY' - import json - with open('/tmp/release_body.md', 'r', encoding='utf-8') as f: + BODY_JSON=$(python3 - <<'PY' + import json + + with open('/tmp/release_body.md', 'r', encoding='utf-8') as f: print(json.dumps(f.read(), ensure_ascii=False)) - PY - ) + PY + ) if [ "${HOST}" = "github.com" ]; then CREATE_URL="https://api.github.com/repos/${REPO}/releases"