Compare commits
1 Commits
7cb2a8b618
...
v0.15.3
| Author | SHA1 | Date | |
|---|---|---|---|
|
0ac652beee
|
@@ -17,8 +17,31 @@ jobs:
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
|
||||
- name: Build package
|
||||
run: uv build
|
||||
- name: Build Gitea package
|
||||
run: |
|
||||
# Keep the public/PyPI distribution as real-browser-cli in the repo,
|
||||
# but publish the private Gitea package under browser-cli.
|
||||
python - <<'PY'
|
||||
from pathlib import Path
|
||||
|
||||
replacements = {
|
||||
Path("pyproject.toml"): (
|
||||
'name = "real-browser-cli"',
|
||||
'name = "browser-cli"',
|
||||
),
|
||||
Path("browser_cli/constants.py"): (
|
||||
'PYPI_PACKAGE_NAME = "real-browser-cli"',
|
||||
'PYPI_PACKAGE_NAME = "browser-cli"',
|
||||
),
|
||||
}
|
||||
|
||||
for path, (old, new) in replacements.items():
|
||||
text = path.read_text()
|
||||
if old not in text:
|
||||
raise SystemExit(f"expected text not found in {path}: {old}")
|
||||
path.write_text(text.replace(old, new, 1))
|
||||
PY
|
||||
uv build
|
||||
|
||||
- name: Publish to Gitea
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user