diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index b9dfab4..44043d0 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. It stays a draft until a maintainer publishes it. - 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 + # 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 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")