mirror of
https://github.com/theupriser/steamify-cachyos-live-iso.git
synced 2026-10-02 15:10:26 +02:00
feat(ci): iso-1-github-tag.yml takes the kind of build (release, dev, auto) so it always runs from master
This commit is contained in:
1 parent
ceadf20a1b
commit
38ac8f1cba
2 files changed
+16
-5
No files matched your search
@@ -4,13 +4,20 @@
|
|||||||
# GitHub releases take at most 2 GB per file, the ISO is bigger, and a release on the mirror only survives its
|
# GitHub releases take at most 2 GB per file, the ISO is bigger, and a release on the mirror only survives its
|
||||||
# syncs when its tag comes from here.
|
# syncs when its tag comes from here.
|
||||||
# Name: the Steamify version the ISO gets (its newest release) plus the time (UTC, GitHub's clock when the release starts):
|
# Name: the Steamify version the ISO gets (its newest release) plus the time (UTC, GitHub's clock when the release starts):
|
||||||
# master releases v<steamify>-<YYYY.MM.DD>-<HHMM>, feat/steamify a pre-release v<steamify>-dev.<...>.
|
# kind release: v<steamify>-<YYYY.MM.DD>-<HHMM>, a real release; kind dev: a pre-release v<steamify>-dev.<...>.
|
||||||
name: ISO 1/2 · Tag and release (GitHub)
|
name: ISO 1/2 · Tag and release (GitHub)
|
||||||
|
|
||||||
# Started by a new Steamify release (its bundle.yml, secret ISO_DISPATCH_TOKEN) or by hand (Run workflow,
|
# Always run from master. Started by steamify-cachyos (its bundle.yml, secret ISO_DISPATCH_TOKEN), which says what to
|
||||||
# on master for a release, on feat/steamify for a test build); not by every push.
|
# build: a version published from main -> kind release, a version on a release branch -> kind dev. Or by hand (Run
|
||||||
|
# workflow); `auto` is a release on master and a dev build on any other branch. Not started by pushes.
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
kind:
|
||||||
|
description: "release (a real ISO), dev (a pre-release test build) or auto (release on master, dev elsewhere)"
|
||||||
|
type: choice
|
||||||
|
options: [auto, release, dev]
|
||||||
|
default: auto
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@@ -33,7 +40,11 @@ jobs:
|
|||||||
steamify="$(gh release view -R theupriser/steamify-cachyos --json tagName -q .tagName)"
|
steamify="$(gh release view -R theupriser/steamify-cachyos --json tagName -q .tagName)"
|
||||||
steamify="${steamify#v}"
|
steamify="${steamify#v}"
|
||||||
stamp="$(date -u +%Y.%m.%d-%H%M)"
|
stamp="$(date -u +%Y.%m.%d-%H%M)"
|
||||||
if [ "${{ github.ref }}" = refs/heads/master ]; then
|
kind="${{ inputs.kind }}"
|
||||||
|
if [ -z "$kind" ] || [ "$kind" = auto ]; then
|
||||||
|
if [ "${{ github.ref }}" = refs/heads/master ]; then kind=release; else kind=dev; fi
|
||||||
|
fi
|
||||||
|
if [ "$kind" = release ]; then
|
||||||
tag="v$steamify-$stamp" pre="" name="CachyOS with Steamify Live ISO $steamify ($stamp UTC)"
|
tag="v$steamify-$stamp" pre="" name="CachyOS with Steamify Live ISO $steamify ($stamp UTC)"
|
||||||
else
|
else
|
||||||
tag="v$steamify-dev.$stamp" pre="--prerelease" name="CachyOS with Steamify Live ISO $steamify (test build $stamp UTC)"
|
tag="v$steamify-dev.$stamp" pre="--prerelease" name="CachyOS with Steamify Live ISO $steamify (test build $stamp UTC)"
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ Full write-up, with every trap: `steamify-iso-release` in steamify-cachyos-dev.
|
|||||||
- `.github/workflows/iso-1-github-tag.yml` (GitHub, `workflow_dispatch` only: by hand, or started by a new Steamify
|
- `.github/workflows/iso-1-github-tag.yml` (GitHub, `workflow_dispatch` only: by hand, or started by a new Steamify
|
||||||
release, whose `bundle.yml` needs the secret `ISO_DISPATCH_TOKEN`) names the release: the Steamify version plus
|
release, whose `bundle.yml` needs the secret `ISO_DISPATCH_TOKEN`) names the release: the Steamify version plus
|
||||||
GitHub's UTC time, `vX.Y.Z-[dev.]YYYY.MM.DD-HHMM`, an **annotated** tag and a release with notes and the direct
|
GitHub's UTC time, `vX.Y.Z-[dev.]YYYY.MM.DD-HHMM`, an **annotated** tag and a release with notes and the direct
|
||||||
download link. `feat/steamify` makes a `dev.` pre-release, `master` a real one.
|
download link. The workflow always runs from `master`; its input `kind` (`release`, `dev`, or `auto`: release on master, dev on other branches) decides: `release` is a real release, `dev` a `dev.` pre-release. steamify-cachyos' bundle.yml passes it: a version published from main -> `release`, a version on a release branch -> `dev`.
|
||||||
- `.github/workflows/iso-2-gitea-build.yml` (Gitea, `on: push: tags: v*`, skipped on GitHub) runs two jobs for that
|
- `.github/workflows/iso-2-gitea-build.yml` (Gitea, `on: push: tags: v*`, skipped on GitHub) runs two jobs for that
|
||||||
tag: build the ISO, then attach it to the mirror's release. It is not tested there (the runner is small): the VM tests
|
tag: build the ISO, then attach it to the mirror's release. It is not tested there (the runner is small): the VM tests
|
||||||
run on GitHub, in steamify-cachyos `vmtest.yml`, on the newest ISO release of the mirror. The tag decides everything: Steamify version (`steamify-prepare.sh`
|
run on GitHub, in steamify-cachyos `vmtest.yml`, on the newest ISO release of the mirror. The tag decides everything: Steamify version (`steamify-prepare.sh`
|
||||||
|
|||||||
Reference in new issue
Block a user