feat: add semver auto-increment and version display
- Add VERSION file (starts at 0.1.0) - Deploy workflow bumps patch on every push, commits back [skip ci] - APP_VERSION passed into container via env - Version shown in page header next to title Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
3
webui.py
3
webui.py
@@ -30,6 +30,7 @@ from pydantic import BaseModel, field_validator
|
||||
|
||||
VAULT_DIR: Path = Path(os.environ.get("VAULT_DIR", "/vault"))
|
||||
SETTINGS_PATH: Path = Path(os.environ.get("SETTINGS_PATH", "/work/settings.json"))
|
||||
APP_VERSION: str = os.environ.get("APP_VERSION", "dev")
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# App + job state
|
||||
@@ -441,7 +442,7 @@ def _page(title: str, body: str) -> str:
|
||||
<style>{_BASE_CSS}</style></head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>Outline Sync</h1>
|
||||
<h1>Outline Sync <small style="font-size:.55em;color:#aaa;font-weight:400">v{APP_VERSION}</small></h1>
|
||||
<nav>
|
||||
<a href="/">Dashboard</a>
|
||||
<a href="/changes">Changes</a>
|
||||
|
||||
Reference in New Issue
Block a user