Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
0ac652beee
|
@@ -17,8 +17,31 @@ jobs:
|
|||||||
- name: Install uv
|
- name: Install uv
|
||||||
uses: astral-sh/setup-uv@v5
|
uses: astral-sh/setup-uv@v5
|
||||||
|
|
||||||
- name: Build package
|
- name: Build Gitea package
|
||||||
run: uv build
|
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
|
- name: Publish to Gitea
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user