From 3565b1ea83b634e63b1ad874b7d33178183df89a Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 27 Nov 2026 19:26:04 +0000 Subject: [PATCH 1/3] cd: attach release files to a draft, then publish The release is immutable, so the publish step cannot add assets after it is published. v1.10.1.0 was published with no assets because the action published first and then uploaded, and the uploads were refused. Create the release as a draft with all five files attached, then publish it. --- .github/workflows/cd.yaml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index b9dfab4..5297ed0 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -125,12 +125,14 @@ jobs: name: release-signed path: release + # Immutable releases refuse assets once a release is published, so the release is created as a draft with every + # file attached, and only then published. - name: Publish release - uses: Xotl/cool-github-releases@v1.1.8 - with: - mode: update - tag_name: v${{ needs.build.outputs.version }} - release_name: gMod v${{ needs.build.outputs.version }} - assets: release/gMod.dll;release/TpfConvert.exe;release/d3dx9_43.dll;release/gMod.pdb.gz;release/gMod.debug.gz - github_token: ${{ secrets.GITHUB_TOKEN }} - replace_assets: true + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TAG: v${{ needs.build.outputs.version }} + run: | + set -euo pipefail + gh release create "$TAG" --repo "$GITHUB_REPOSITORY" --target "$GITHUB_SHA" --title "gMod $TAG" --draft \ + release/gMod.dll release/TpfConvert.exe release/d3dx9_43.dll release/gMod.pdb.gz release/gMod.debug.gz + gh release edit "$TAG" --repo "$GITHUB_REPOSITORY" --draft=false From 56e4ef4845ee5ae9376e38a1dd7a03b5dd3c13bf Mon Sep 17 00:00:00 2001 From: Jon Date: Sat, 28 Nov 2026 08:32:57 +0000 Subject: [PATCH 2/3] Bump version to 1.10.2 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e2ee932..1056f6c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ endif() set(VERSION_MAJOR 1) set(VERSION_MINOR 10) -set(VERSION_PATCH 1) +set(VERSION_PATCH 2) set(VERSION_TWEAK 0) set(VERSION_RC "${CMAKE_CURRENT_BINARY_DIR}/version.rc") From 92a97b291df5437ba3b966def1de87b4725c7bb5 Mon Sep 17 00:00:00 2001 From: Jon Date: Sat, 28 Nov 2026 08:35:47 +0000 Subject: [PATCH 3/3] cd: leave the release as a draft for manual publishing The publish step ended by publishing the draft, so the release went public without the manual approval it was meant to have. Remove that step. The files stay attached to the draft, and a maintainer publishes it on the Releases page. --- .github/workflows/cd.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index 5297ed0..44043d0 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -126,13 +126,13 @@ jobs: path: release # Immutable releases refuse assets once a release is published, so the release is created as a draft with every - # file attached, and only then published. + # file attached. It stays a draft until a maintainer publishes it. - name: Publish release env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} TAG: v${{ needs.build.outputs.version }} run: | set -euo pipefail + # Left as a draft: a maintainer publishes it on the Releases page after checking the files. gh release create "$TAG" --repo "$GITHUB_REPOSITORY" --target "$GITHUB_SHA" --title "gMod $TAG" --draft \ release/gMod.dll release/TpfConvert.exe release/d3dx9_43.dll release/gMod.pdb.gz release/gMod.debug.gz - gh release edit "$TAG" --repo "$GITHUB_REPOSITORY" --draft=false