Compare commits
3 commits
7dd83f0a88
...
7eee8ba8ca
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7eee8ba8ca | ||
|
|
82f68278f6 | ||
|
|
fd9b6ff53d |
7 changed files with 32 additions and 7 deletions
|
|
@ -28,12 +28,12 @@ jobs:
|
||||||
id: version
|
id: version
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
BASE="$(cat VERSION 2>/dev/null || echo 0.0.0)"
|
BASE="$(tr -d '[:space:]' < VERSION 2>/dev/null || echo 0.0.0)"
|
||||||
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
|
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
|
||||||
VERSION="${GITHUB_REF_NAME#v}"
|
VERSION="${GITHUB_REF_NAME#v}"
|
||||||
CHANNEL="release"
|
CHANNEL="release"
|
||||||
else
|
else
|
||||||
VERSION="${BASE}-rc.${GITHUB_SHA:0:8}"
|
VERSION="${BASE}"
|
||||||
CHANNEL="main"
|
CHANNEL="main"
|
||||||
fi
|
fi
|
||||||
echo "VERSION=${VERSION}" >> "$GITHUB_ENV"
|
echo "VERSION=${VERSION}" >> "$GITHUB_ENV"
|
||||||
|
|
|
||||||
|
|
@ -27,12 +27,12 @@ jobs:
|
||||||
id: version
|
id: version
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
BASE="$(cat VERSION 2>/dev/null || echo 0.0.0)"
|
BASE="$(tr -d '[:space:]' < VERSION 2>/dev/null || echo 0.0.0)"
|
||||||
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
|
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
|
||||||
VERSION="${GITHUB_REF_NAME#v}"
|
VERSION="${GITHUB_REF_NAME#v}"
|
||||||
CHANNEL="release"
|
CHANNEL="release"
|
||||||
else
|
else
|
||||||
VERSION="${BASE}-dev.${GITHUB_SHA:0:8}"
|
VERSION="${BASE}"
|
||||||
CHANNEL="dev"
|
CHANNEL="dev"
|
||||||
fi
|
fi
|
||||||
echo "VERSION=${VERSION}" >> "$GITHUB_ENV"
|
echo "VERSION=${VERSION}" >> "$GITHUB_ENV"
|
||||||
|
|
|
||||||
5
.gitattributes
vendored
Normal file
5
.gitattributes
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
# Houd VERSION en shell/workflow-bestanden op LF, ook op Windows,
|
||||||
|
# zodat de CI ze correct leest.
|
||||||
|
VERSION text eol=lf
|
||||||
|
*.sh text eol=lf
|
||||||
|
*.yml text eol=lf
|
||||||
20
CHANGELOG.md
20
CHANGELOG.md
|
|
@ -1,3 +1,23 @@
|
||||||
|
# v0.4.60 — Tweecijferig patch-nummer
|
||||||
|
|
||||||
|
## Versiebeleid vanaf v0.4.60
|
||||||
|
|
||||||
|
Het patch-deel (laatste cijfer) gebruikt nu twee cijfers en loopt in tientallen:
|
||||||
|
`0.4.60`, `0.4.61`, … `0.4.69`, `0.4.70`. Blijft semver-compatibel (het deel
|
||||||
|
wordt als geheel getal vergeleken, dus `0.4.60` > `0.4.6`).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# v0.4.6 — Kaal versienummer op alle builds
|
||||||
|
|
||||||
|
## Wijziging in v0.4.6
|
||||||
|
|
||||||
|
De deploy-workflows tonen nu overal het kale versienummer uit het `VERSION`-
|
||||||
|
bestand (of de tagnaam), zonder `-dev`/`-rc.<sha>`-suffix. Eenvoudiger te lezen;
|
||||||
|
bump bij elke wijziging gewoon `VERSION`.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
# v0.4.5 — Releases & in-app update-check
|
# v0.4.5 — Releases & in-app update-check
|
||||||
|
|
||||||
## Nieuw in v0.4.5
|
## Nieuw in v0.4.5
|
||||||
|
|
|
||||||
2
VERSION
2
VERSION
|
|
@ -1 +1 @@
|
||||||
0.4.5
|
0.4.60
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ from core.modules import Module, CORE, discover
|
||||||
|
|
||||||
app = Flask(__name__, static_folder="static", template_folder="templates")
|
app = Flask(__name__, static_folder="static", template_folder="templates")
|
||||||
|
|
||||||
VERSION = os.environ.get("SU_VERSION", "0.4.5")
|
VERSION = os.environ.get("SU_VERSION", "0.4.60")
|
||||||
|
|
||||||
MODULES: list[Module] = []
|
MODULES: list[Module] = []
|
||||||
USER_MOD = APP / "modules"
|
USER_MOD = APP / "modules"
|
||||||
|
|
|
||||||
|
|
@ -771,7 +771,7 @@ tailwind.config = {
|
||||||
<script>
|
<script>
|
||||||
function app() {
|
function app() {
|
||||||
return {
|
return {
|
||||||
version: '0.4.5',
|
version: '0.4.60',
|
||||||
page: location.hash.slice(1) || 'dashboard',
|
page: location.hash.slice(1) || 'dashboard',
|
||||||
isMobile: window.innerWidth < 768,
|
isMobile: window.innerWidth < 768,
|
||||||
sidebarOpen: window.innerWidth >= 768 && localStorage.getItem('sidebar') !== 'closed',
|
sidebarOpen: window.innerWidth >= 768 && localStorage.getItem('sidebar') !== 'closed',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue