Nightly: derive version from releases
Container CI / release-build (push) Has been cancelled

This commit is contained in:
faumaray committed 2026-07-26 05:23:18 +03:00
1 parent 9401f19ad5
commit d5db7f2d2a
4 files changed
+236 -29

No files matched your search

+13 -10
View File
@@ -123,16 +123,19 @@ feed failure can therefore be retried without replacing a published release.
## Nightly releases
`.gitea/workflows/nightly.yml` runs at 02:17 UTC and can also be dispatched
manually. Nightly versions use
`0.0.0-nightly.YYYYMMDD.RUN_NUMBER`, publish as prereleases on the `nightly`
channel, and keep the newest 14 Gitea releases. The aggregate feed also keeps
the newest 14 distinct nightly versions while retaining stable and beta
records. Gitea materializes a missing `nightly-*` Git tag only when the
download-verified draft is published; the publisher then verifies its commit
immediately and never moves an existing tag whose target differs. Stable and
beta publishing require their signed tag to exist before creating a draft. If
`nightly-*` is protected separately, allow the release bot to create and delete
it.
manually. The highest published `vMAJOR.MINOR.PATCH` release supplies the next
patch as `MAJOR.MINOR.(PATCH+1)-nightly.YYYYMMDD.RUN_NUMBER`. With no published
semantic release, nightlies use the root CMake
`project(Echoion VERSION x.y.z)` value without incrementing it. Drafts, failed
publications, and `nightly-*` releases do not affect the base. Nightlies use the
`nightly` channel, publish as prereleases, and keep the newest 14 Gitea
releases. The aggregate feed also keeps the newest 14 distinct nightly versions
while retaining stable and beta records. Gitea materializes a missing
`nightly-*` Git tag only when the download-verified draft is published; the
publisher then verifies its commit immediately and never moves an existing tag
whose target differs. Stable and beta publishing require their signed tag to
exist before creating a draft. If `nightly-*` is protected separately, allow
the release bot to create and delete it.
Every aggregate envelope expires 45 days after generation. Scheduled
nightlies normally refresh it daily. Alert when the feed branch has not
+14 -1
View File
@@ -36,13 +36,26 @@ jobs:
- name: Derive the nightly identity
shell: bash
env:
GITEA_RELEASE_TOKEN: ${{ secrets.RELEASE_BOT_TOKEN }}
API_URL: ${{ gitea.api_url }}
SERVER_URL: ${{ gitea.server_url }}
REPOSITORY: ${{ gitea.repository }}
RUN_NUMBER: ${{ gitea.run_number }}
run: |
set -euo pipefail
date_id=$(date -u +%Y%m%d)
version="0.0.0-nightly.${date_id}.${RUN_NUMBER}"
owner=${REPOSITORY%%/*}
repo=${REPOSITORY#*/}
version=$(
python3 scripts/gitea_release.py \
--api-url "$API_URL" \
derive-nightly-version \
--owner "$owner" \
--repo "$repo" \
--cmake-file CMakeLists.txt \
--date-id "$date_id" \
--run-number "$RUN_NUMBER"
)
tag="nightly-${date_id}-${RUN_NUMBER}"
artifact="echoion-${version}-linux-x86_64.tar.zst"
url="${SERVER_URL}/${REPOSITORY}/releases/download/${tag}/${artifact}"