Files
CommandForge/RELEASING.md
T
poli0981andClaude Opus 4.8 f0d62490f2 Phase 6c: CI/CD, Velopack release pipeline, version-flow fix, build/update docs
Workflows (.github/workflows/):
- build.yml: Windows restore + dotnet format --verify + Release build
  (0-warning gate) + tests, on PR/push to main.
- codeql.yml: project-specific CodeQL C# (Windows, builds CommandForge.slnx).
  The shared reusable codeql-csharp.yml runs on Linux and expects a .sln, so
  it cannot build this WPF/.slnx app.
- release.yml: on tag v*, install vpk, download the previous release for the
  delta base (continue-on-error on first release), publish self-contained +
  vpk pack, publish the GitHub Release (vpk upload github), attach SHA-256
  checksums.txt, and optionally submit to VirusTotal (gated on VT_API_KEY).
- announce-release.yml + notify-ci-failure.yml: thin callers of the reusable
  Discord workflows in poli0981/.github (secrets: inherit).
- dependabot.yml: weekly nuget + github-actions updates.

Fix: scripts/pack.ps1 now passes -p:Version/-p:InformationalVersion to
dotnet publish, so the in-app "App version" matches the release tag instead of
defaulting to 1.0.0.

Docs (English, public): BUILD.md, RELEASING.md, UPDATES.md — including the
Velopack update mechanism (first vs subsequent release and how deltas are
produced) and the required repo secrets.

No source changes; 0-warning Release build, 104 tests pass; actionlint clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 19:27:49 +07:00

2.2 KiB

Releasing CommandForge

Releases are automated by release.yml, triggered by pushing a SemVer tag.

Steps

  1. Update docs/Changelog.md (internal) and make sure main is green.
  2. Choose a SemVer version X.Y.Z.
  3. Tag and push:
    git tag v0.3.0
    git push origin v0.3.0
    
  4. The Release workflow runs on windows-latest and:
    • resolves the version from the tag (vX.Y.Z → X.Y.Z),
    • installs vpk,
    • downloads the previous release (vpk download github) so a delta can be computed (skipped/ignored on the very first release),
    • publishes self-contained and packages with Velopack (scripts/pack.ps1, which stamps the assembly version),
    • publishes the GitHub Release with all Releases/ assets (vpk upload github --publish),
    • generates checksums.txt (SHA-256) and attaches it,
    • if VT_API_KEY is set, submits Setup.exe + *-full.nupkg to VirusTotal and appends the scan links to the release notes.
  5. Edit the GitHub Release notes if needed (changelog highlights). The SHA-256 + VirusTotal info is already attached.

You can also run the workflow manually (Actions → Release → Run workflow) with a version input; it tags vX.Y.Z via the upload step.

Required repository secrets

Secret Used for Required
GITHUB_TOKEN Create the release & upload assets automatic
VT_API_KEY VirusTotal scan + links optional (step skipped if unset)
DISCORD_RELEASES_WEBHOOK (or DISCORD_REPO_WEBHOOK) Release announcement to Discord optional
DISCORD_PING_ROLE_ID Role ping on stable releases optional
DISCORD_CI_WEBHOOK Build-failure alerts to Discord optional

poli0981 is a user account (not an org), so secrets are set per repository (Settings → Secrets and variables → Actions).

Code signing

Not done yet. Releases ship unsigned; users may see a SmartScreen "unknown publisher" warning. Mitigations: SHA-256 + VirusTotal (above), no obfuscation, public source. When Azure Trusted Signing (or SignPath Foundation) is configured, add a signing step after dotnet publish and before vpk pack, and update SECURITY.md.