Skip to content

Publish a GitHub Release when a version reaches prod - #51

Merged
paulcustance-al merged 1 commit into
mainfrom
sab-596-publish-release
Nov 20, 2026
Merged

paulcustance-al merged 1 commit into
mainfrom
sab-596-publish-release

Conversation

@paulcustance-al

Copy link
Copy Markdown
Contributor

SAB-596. Same change as DFE-Digital/SchoolAccount-Web#178 and DFE-Digital/SchoolAccount-CollectAPI#81.

Why

Nothing records which versions have reached prod, or what changed between them.

Change

A Publish release job in deploy.yml that runs after a successful prod deploy from a version tag:

  • Creates a GitHub Release for the tag using softprops/action-gh-release (pinned to the v3.0.4 commit), with GitHub's generated notes.
  • The notes start from the previous release, so they cover every PR since the last version that reached prod, not only since the previous tag.
  • Skips a version that's already released (a redeploy) and a version older than the latest release (a rollback), since the action would otherwise update or add to an existing release.
  • Dev and preprod never publish, so the Releases page only lists what has been to prod.

Testing

  • The workflow parses.
  • The check step (identical to the Web repo's), with gh stubbed: redeploy of a released version → skip; first ever release → publish with no previous; .9 → .10 → publish from .9; rollback to an older version → skip.
  • The same job was run end to end on a fork of the Web repo (first release, notes starting from the previous release, skip on redeploy tested locally).
  • Not run here yet. The first prod deploy after merging will create the first release.

🤖 Generated with Claude Code

@github-actions

Copy link
Copy Markdown

Test Results

 2 files   2 suites   6s ⏱️
91 tests 91 ✅ 0 💤 0 ❌
92 runs  92 ✅ 0 💤 0 ❌

Results for commit 3da776f.

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Test Results

 2 files  ±0   2 suites  ±0   5s ⏱️ ±0s
91 tests ±0  91 ✅ ±0  0 💤 ±0  0 ❌ ±0 
92 runs  ±0  92 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit f5d0104. ± Comparison against base commit e7b6ecc.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Summary

Summary
Generated on: 11/20/2026 - 21:04:05
Parser: MultiReport (2x Cobertura)
Assemblies: 1
Classes: 16
Files: 15
Line coverage: 89% (236 of 265)
Covered lines: 236
Uncovered lines: 29
Coverable lines: 265
Total lines: 755
Branch coverage: 88.6% (39 of 44)
Covered branches: 39
Total branches: 44
Method coverage: Feature is only available for sponsors
Tag: 162_44816706433

Coverage

SchoolAccount.CollectNotifications - 89%
Name Line Branch
SchoolAccount.CollectNotifications 89% 88.6%
Program 0%
SchoolAccount.CollectNotifications.Extensions.ConfigurationExtensions 0% 0%
SchoolAccount.CollectNotifications.Extensions.HostBuilderExtensions 95.6% 75%
SchoolAccount.CollectNotifications.Extensions.ServiceCollectionExtensions 100% 100%
SchoolAccount.CollectNotifications.Models.DbConnectionFactory 100%
SchoolAccount.CollectNotifications.Models.Dtos.Notification 100%
SchoolAccount.CollectNotifications.Models.Options.CensusOptions 100%
SchoolAccount.CollectNotifications.Models.Result 100%
SchoolAccount.CollectNotifications.Models.Result 100% 100%
SchoolAccount.CollectNotifications.Models.StatusWording 100%
SchoolAccount.CollectNotifications.Models.StatusWordings 100%
SchoolAccount.CollectNotifications.Services.GovNotifyService 100% 100%
SchoolAccount.CollectNotifications.Services.LastRanService 92%
SchoolAccount.CollectNotifications.Services.StatusChangedLedgerMonitoringSe
rvice
96.3% 92.3%
SchoolAccount.CollectNotifications.Services.StatusChangedLedgerMonitoringSe
rviceInstrumentation
100%
SchoolAccount.CollectNotifications.Stores.LedgerStore 94.1%

@github-actions

Copy link
Copy Markdown

Summary

Summary
Generated on: 11/18/2026 - 12:29:09
Parser: MultiReport (2x Cobertura)
Assemblies: 1
Classes: 16
Files: 15
Line coverage: 88.9% (234 of 263)
Covered lines: 234
Uncovered lines: 29
Coverable lines: 263
Total lines: 752
Branch coverage: 88% (37 of 42)
Covered branches: 37
Total branches: 42
Method coverage: Feature is only available for sponsors
Tag: 140_44304123506

Coverage

SchoolAccount.CollectNotifications - 88.9%
Name Line Branch
SchoolAccount.CollectNotifications 88.9% 88%
Program 0%
SchoolAccount.CollectNotifications.Extensions.ConfigurationExtensions 0% 0%
SchoolAccount.CollectNotifications.Extensions.HostBuilderExtensions 95.6% 75%
SchoolAccount.CollectNotifications.Extensions.ServiceCollectionExtensions 100% 100%
SchoolAccount.CollectNotifications.Models.DbConnectionFactory 100%
SchoolAccount.CollectNotifications.Models.Dtos.Notification 100%
SchoolAccount.CollectNotifications.Models.Options.CensusOptions 100%
SchoolAccount.CollectNotifications.Models.Result 100%
SchoolAccount.CollectNotifications.Models.Result 100% 100%
SchoolAccount.CollectNotifications.Models.StatusWording 100%
SchoolAccount.CollectNotifications.Models.StatusWordings 100%
SchoolAccount.CollectNotifications.Services.GovNotifyService 100% 100%
SchoolAccount.CollectNotifications.Services.LastRanService 92%
SchoolAccount.CollectNotifications.Services.StatusChangedLedgerMonitoringSe
rvice
96.2% 91.6%
SchoolAccount.CollectNotifications.Services.StatusChangedLedgerMonitoringSe
rviceInstrumentation
100%
SchoolAccount.CollectNotifications.Stores.LedgerStore 94.1%

Base automatically changed from sab-595-per-environment-deploys to main November 20, 2026 21:02
@paulcustance-al
paulcustance-al merged commit ef57b7e into main Nov 20, 2026
8 checks passed
@paulcustance-al
paulcustance-al deleted the sab-596-publish-release branch November 20, 2026 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants