This repository was archived by the owner on May 29, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,31 +46,10 @@ jobs:
4646 uv venv .venv
4747 uv pip install -p "$VENV_PYTHON" vrelease-bin
4848
49- - name : Detect vrelease binary
50- run : |
51- "$VENV_PYTHON" - <<'PY'
52- import pathlib
53- import vrelease
54- bin_name = f"vrelease-{vrelease.get_platform_bin()}"
55- bin_path = pathlib.Path(vrelease.__file__).parent / "bin" / bin_name
56- print(f"Using binary: {bin_path}")
57- exists = bin_path.exists()
58- print(f"Binary exists: {exists}")
59- with open(".env_vrelease_bin", "w", encoding="utf-8") as fh:
60- fh.write(f"VRELEASE_BIN_EXISTS={'true' if exists else 'false'}\n")
61- PY
62- cat .env_vrelease_bin >> "$GITHUB_ENV"
63-
6449 - name : Run vrelease (version)
65- if : ${{ env.VRELEASE_BIN_EXISTS == 'true' }}
6650 run : |
6751 "$VENV_BIN/vrelease" -v
6852
6953 - name : Run vrelease (help)
70- if : ${{ env.VRELEASE_BIN_EXISTS == 'true' }}
7154 run : |
7255 "$VENV_BIN/vrelease" -h
73-
74- - name : Skip vrelease run (missing binary)
75- if : ${{ env.VRELEASE_BIN_EXISTS != 'true' }}
76- run : echo "Skipping vrelease execution; binary missing for this platform."
Original file line number Diff line number Diff line change 6060 - name : Install vrelease
6161 run : uv run -m pip install dist/vrelease_bin-*.whl
6262
63- - name : Detect vrelease binary
64- run : |
65- uv run python - <<'PY'
66- import pathlib
67- import vrelease
68- bin_name = f"vrelease-{vrelease.get_platform_bin()}"
69- bin_path = pathlib.Path(vrelease.__file__).parent / "bin" / bin_name
70- print(f"Using binary: {bin_path}")
71- exists = bin_path.exists()
72- print(f"Binary exists: {exists}")
73- with open(".env_vrelease_bin", "w", encoding="utf-8") as fh:
74- fh.write(f"VRELEASE_BIN_EXISTS={'true' if exists else 'false'}\n")
75- PY
76- cat .env_vrelease_bin >> "$GITHUB_ENV"
77-
7863 - name : Run vrelease (version)
79- if : ${{ env.VRELEASE_BIN_EXISTS == 'true' }}
8064 run : uv run vrelease -v
8165
8266 - name : Run vrelease (help)
83- if : ${{ env.VRELEASE_BIN_EXISTS == 'true' }}
8467 run : uv run vrelease -h
85-
86- - name : Skip vrelease run (missing binary)
87- if : ${{ env.VRELEASE_BIN_EXISTS != 'true' }}
88- run : echo "Skipping vrelease execution; binary missing for this platform."
Original file line number Diff line number Diff line change @@ -37,9 +37,6 @@ def download_and_write(filename):
3737 url = 'https://github.com/vrelease/vrelease/releases/download/v{}/{}' .format (VERSION , filename )
3838
3939 req = requests .get (url , stream = True , timeout = 30 )
40- if req .status_code == 404 :
41- log ('missing artifact: ' + filename )
42- return None
4340 req .raise_for_status ()
4441 with tempfile .NamedTemporaryFile (delete = False , dir = dirname (dest_path )) as tmp_file :
4542 for chunk in req .iter_content (chunk_size = 8192 ):
@@ -71,14 +68,11 @@ def main():
7168 for f in [
7269 'linux' ,
7370 'linux-arm64' ,
74- 'macos-x86_64' ,
7571 'macos-arm64' ,
72+ 'macos-x86_64' ,
7673 'windows.exe' ,
7774 ]
7875 ]
79- files = [file for file in files if file ]
80- if not files :
81- raise RuntimeError ('no artifacts downloaded' )
8276
8377 log ('calculating hashes' )
8478 shasum = []
Original file line number Diff line number Diff line change 11[project ]
22name = " vrelease-bin"
3- version = " 0.3.2 "
3+ version = " 0.4.0 "
44description = " binary wrapper for vrelease - a kiss solution to easily create project releases"
55readme = " README.md"
66license = { text = " CC0-1.0" }
You can’t perform that action at this time.
0 commit comments