qodana.yml runs JetBrains Qodana for .NET (qodana-dotnet, Rider's engine, Ultimate licence through the QODANA_TOKEN secret) on pushes to main, pull requests and by hand: - a `token` job skips fork and Dependabot runs without trusting actor names (as SonarCloud); - the `qodana` job runs on windows-latest, because WPF (net10.0-windows) only loads there: restore, a Release build (a failing build is one red step), then the action pinned by SHA (v2026.2.2) with pr-mode off, so pull requests and main are judged by the same list; - results go to Qodana Cloud, to annotations and a PR comment, and to the qodana-report artifact. It is advisory: not a required check. qodana.yaml holds every setting: native mode, the qodana.recommended profile without the Hints severity, app.manifest left out of XmlHighlighting, the solution and configuration, output folders excluded, and a gate of zero problems. Also: the CI-failure notifier watches Qodana; BUILD.md, RELEASING.md (QODANA_TOKEN), SECURITY.md and CONTRIBUTING.md describe it, and BUILD.md the Dependabot major-version rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3.8 KiB
Releasing CommandForge
Releases are automated by release.yml, triggered by pushing a
SemVer tag.
Steps
-
Make sure
mainis green and contains everything for the release. -
Choose a SemVer version
X.Y.Z. In a pull request, move the[Unreleased]notes in CHANGELOG.md under## [X.Y.Z] — <date>, add the compare link at the bottom, and set<Version>inDirectory.Build.props(the dev-build default; the release build stamps the tag's version anyway). Merge it. -
Tag the merge commit on
mainwith a signed, annotated tag and push it:git switch main && git pull git tag -s vX.Y.Z -m "CommandForge X.Y.Z" git push origin vX.Y.ZThe
release tagsruleset protectsv*tags: once pushed, a release tag can't be moved or deleted (only a repository admin can bypass this). -
The Release workflow runs on
windows-latestand:- resolves the version from the tag (
vX.Y.Z→X.Y.Z); - restores the pinned
vpktool and downloads the previous release so a delta package can be computed; - publishes and packages with Velopack (
scripts/pack.ps1); - creates build-provenance attestations for
Setup.exe, the portable zip and this version's.nupkgfiles; - uploads everything as a draft GitHub Release, attaches the SPDX SBOM
(
sbom.spdx.json) andchecksums.txt(SHA-256 of every published asset), sets the release notes to this version's section ofCHANGELOG.md, then publishes it as the latest release — installed copies only see the update once every asset is in place; - if
VT_API_KEYis set, submitsSetup.exeand the full package to VirusTotal and appends the scan links to the release notes; - calls the shared announcer (
poli0981/.github) to post the release to Discord.
- resolves the version from the tag (
-
Check the release page: the assets are all there, and the attestation verifies:
gh release download vX.Y.Z --pattern "*-Setup.exe" gh attestation verify CommandForge-win-Setup.exe --repo poli0981/CommandForgeThe notes are the CHANGELOG section followed by the VirusTotal links; edit them on the release page if you want a shorter summary (keep the VirusTotal section). The SHA-256 sums are in
checksums.txt.
You can also run the workflow manually (Actions → Release → Run workflow) with a version
input; the upload step then creates the vX.Y.Z tag.
Repository secrets
| Secret | Used for | Required |
|---|---|---|
GITHUB_TOKEN |
Create the release, upload assets, read the SBOM | 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/SonarCloud/Qodana failure alerts to Discord | optional |
SONAR_TOKEN |
SonarCloud analysis and coverage (sonarcloud.yml) |
for the SonarCloud workflow (runs without it are skipped) |
QODANA_TOKEN |
Qodana Cloud project token; selects the Ultimate licence (qodana.yml) |
for the Qodana workflow (runs without it are skipped) |
poli0981is a user account (not an org), so secrets are set per repository (Settings → Secrets and variables → Actions).
Code signing
Not done yet: releases ship without an Authenticode signature, so users may see a SmartScreen
"unknown publisher" warning. Mitigations: build-provenance attestations, SHA-256 checksums, an
SBOM, VirusTotal, no obfuscation, and public source. When Azure Trusted Signing (or SignPath
Foundation) is configured, add a signing step between dotnet publish and vpk pack in
scripts/pack.ps1, and update SECURITY.md.