From c9f1d5e2adb340872285bdcf11147818c6f46e85 Mon Sep 17 00:00:00 2001
From: Patrick Scheid
Date: Thu, 23 Jul 2026 15:35:39 +0200
Subject: [PATCH] Stamp the release version onto the published CLI binaries
The AOT publish step never received -p:Version, so the CLI binaries
shipped with the placeholder 0.1.0 from Age.Cli.csproj regardless of the
release tag. Pass the tag-derived version through, matching the NuGet
pack step. Verified the override lands in the assembly's informational
version.
---
.github/workflows/publish.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 362e6a0..ea03403 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -60,7 +60,7 @@ jobs:
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
- name: Publish AOT binary
- run: dotnet publish Age.Cli/Age.Cli.csproj -r ${{ matrix.rid }} -p:PublishAot=true -c Release
+ run: dotnet publish Age.Cli/Age.Cli.csproj -r ${{ matrix.rid }} -p:PublishAot=true -p:Version=${{ steps.version.outputs.VERSION }} -c Release
- name: Package binary (Linux/macOS)
if: runner.os != 'Windows'