Start the 0.9 line so the release workflow builds the ISO and publishes it on Gitea and GitHub with the image attached. The decide step now refuses to run when the checkout carries no tag: without them the version-line rule reads every VERSION as a new line and publishes a patch release. release.sh reads the last released tag with sed instead of grep, so a repository without tags reaches its "first release" case instead of dying under pipefail, and a dry run no longer demands the production tokens it never uses.
This commit is contained in:
3 files changed
+23
-10
No files matched your search
@@ -3,8 +3,9 @@ name: Release
|
||||
# Publishes a new version line: official build, then the release on Gitea and
|
||||
# on GitHub with the ISO attached.
|
||||
#
|
||||
# Triggered when VERSION changes on Main (an intermediate commit that touches
|
||||
# other files as well does not fire it), and manually from the Actions tab.
|
||||
# Triggered when VERSION changes on Main (any push that touches VERSION fires
|
||||
# it, even alongside other files: the path filter is an OR), and manually from
|
||||
# the Actions tab.
|
||||
on:
|
||||
push:
|
||||
branches: [Main]
|
||||
@@ -57,6 +58,11 @@ jobs:
|
||||
env:
|
||||
FORCE: ${{ inputs.force }}
|
||||
run: |
|
||||
# The version-line rule reads the released tags: a checkout without
|
||||
# them (fetch-depth: 0 dropped) would see every VERSION as a new line
|
||||
# and publish a patch release.
|
||||
[ -n "$(git tag -l)" ] \
|
||||
|| { echo "::error::aucun tag dans le checkout — fetch-depth: 0 est requis"; exit 1; }
|
||||
if [ "${FORCE}" = "true" ]; then
|
||||
./release.sh --check --force
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user