From faf646bb6cb2280b8db91d9927c037fe35c2b926 Mon Sep 17 00:00:00 2001 From: denis smpio-ubuntu Date: Sun, 8 Nov 2026 14:13:48 +0100 Subject: [PATCH] 1.0.0-alpha.1: version-name, suffixed tags become pre-releases Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release.yml | 5 ++++- README.md | 2 +- gnome-shell/smbact@giglabo.com/metadata.json | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bd51e8d..6ae2d18 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,6 +29,9 @@ jobs: env: GH_TOKEN: ${{ github.token }} run: | - gh release create "$GITHUB_REF_NAME" dist/*.zip dist/SHA256SUMS \ + # a tag with a suffix (v1.0.0-alpha.1, -beta.2, -rc.1) is a pre-release + pre="" + case "$GITHUB_REF_NAME" in *-*) pre="--prerelease" ;; esac + gh release create "$GITHUB_REF_NAME" dist/*.zip dist/SHA256SUMS $pre \ --title "smbact-shell $GITHUB_REF_NAME" \ --notes "GNOME Shell extension smbact@giglabo.com, protocol com.giglabo.SMBAct.Shell1 API 1. See PROTOCOL.md." diff --git a/README.md b/README.md index 5c70e74..2fe3301 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ everyone else. ## Releases -A tag `vX.Y.Z` (equal to `version-name` in `metadata.json`) makes GitHub Actions publish +A tag `vX.Y.Z` (equal to `version-name` in `metadata.json`; `vX.Y.Z-alpha.N`, `-beta.N`, `-rc.N` become pre-releases) makes GitHub Actions publish `smbact@giglabo.com.shell-extension.zip` and `SHA256SUMS` as a release. SMBAct pins a tag and checks the sha256. Every push to `main` and every pull request runs the checks and packs the zip (`.github/workflows/`). diff --git a/gnome-shell/smbact@giglabo.com/metadata.json b/gnome-shell/smbact@giglabo.com/metadata.json index da6b0b0..bea5e2c 100644 --- a/gnome-shell/smbact@giglabo.com/metadata.json +++ b/gnome-shell/smbact@giglabo.com/metadata.json @@ -5,5 +5,5 @@ "shell-version": ["46", "47", "48", "49", "50", "51"], "url": "https://github.com/GigLaboCom/smbact-shell", "version": 1, - "version-name": "1.0.0" + "version-name": "1.0.0-alpha.1" }