Skip to content

Release 1.0.1 - #12

Merged
SamElhagDev merged 2 commits into
mainfrom
ci/build-as-run-artifact
Nov 29, 2026
Merged

SamElhagDev merged 2 commits into
mainfrom
ci/build-as-run-artifact

Conversation

@SamElhagDev

@SamElhagDev SamElhagDev commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Release 1.0.1

This PR is version 1.0.1: <Version>1.0.1</Version> and a CHANGELOG.md entry. Merging only runs CI; publishing the v1.0.1 release (drafted, with the notes below) deploys it.

Dependabot

License

  • All rights reserved replaces the GNU AGPL v3.0 (LICENSE, README, CLAUDE.md). 1.0.0 stays AGPL for anyone who got it under that license.

Streamlined workflows

  • Releases carry only GitHub's source archives; the build goes to the deploy job as a run artifact, checked against its SHA-256.
  • The package job publishes without building and testing a second time (the commit already passed required CI on main), so it no longer sets up Node, and the workflow needs no write access.
  • Every merge style is allowed again (merge commit, squash, rebase); the ruleset still requires a PR and the Build and test check.
  • The deploy job drops a redundant temp-folder cleanup; CI caches npm downloads; Dependabot sends one grouped PR per ecosystem.

Release notes

Dependency updates, a leaner deploy, and a new license. Nothing visitors see changes.

License

  • All rights reserved. The repository is no longer under the GNU AGPL v3.0: the code, page text, images,
    and design may be read but not copied, modified, or reused without written permission (see LICENSE).
    Version 1.0.0 stays under the AGPL for anyone who obtained it under that license.

Security and dependencies

  • MailKit 5.0: the contact form's email library now uses MimeKit.Core and no longer depends on
    BouncyCastle, so the cryptography stack it pulled in (and the System.Security.Cryptography.Pkcs pin that
    patched it) is gone. The SMTP code needed one using for the new send API.
  • Updated: MudBlazor 9.14, OpenTelemetry 1.21, Microsoft.Extensions.Http.Resilience and ServiceDiscovery
    10.11.1, Microsoft.NET.Test.Sdk 18.12, coverlet 10.1.1, xunit runner 4.0.1, ReportGenerator 5.6.1, and
    TypeScript 7.0 for the JavaScript type check.
  • Scanned: no known vulnerabilities in any NuGet package (including transitive ones) or npm package.
  • Dependabot alerts and security updates are now on. Weekly updates arrive as one grouped pull request per
    ecosystem, and major versions of packages tied to the .NET version are skipped.

Releases and deployment

  • Releases carry only the source archives. The build goes from the package job to the deploy job as a
    workflow artifact of the run, checked against its SHA-256, instead of being attached to the release.
  • Leaner packaging: the package job publishes the tag without building and testing it a second time,
    since the same commit already passed the required CI check on main. The workflow no longer needs write
    access to the repository.
  • CI caches npm downloads.
  • Merge styles: pull requests can be merged with a merge commit, squash, or rebase (previously squash only).

Releases now carry only GitHub's source archives. The package job is
read-only, keeps the published site as a workflow artifact of the run,
and outputs its SHA-256; the deploy job downloads the artifact, checks
the hash, and deploys it. A redeploy rebuilds the tag. Docs and the
1.0.0 changelog entry updated to match.
@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Coverage

Covered
Lines 573 of 713 80.3%
Branches 129 of 180 71.6%
Least-covered classes
Class Lines Line coverage
samelhag.dev.Components.Pages.Error 0 of 6 0.0%
samelhag.dev.Services.ContactLog 4 of 88 4.5%
samelhag.dev.Services.SmtpMailSender 2 of 8 25.0%
samelhag.dev.Components.Pages.Contact 15 of 56 26.7%
samelhag.dev.Components.Shared.Icon 5 of 6 83.3%
samelhag.dev.Components.Pages.About 80 of 82 97.5%
Program 22 of 22 100.0%
samelhag.dev.Components.App 24 of 24 100.0%
samelhag.dev.Components.Layout.MainLayout 2 of 2 100.0%
samelhag.dev.Components.Layout.NavMenu 3 of 3 100.0%
samelhag.dev.Components.Layout.SiteFooter 7 of 7 100.0%
samelhag.dev.Components.Layout.SiteTheme 60 of 60 100.0%
samelhag.dev.Components.Pages.Home 20 of 20 100.0%
samelhag.dev.Components.Pages.Interests 20 of 20 100.0%
samelhag.dev.Components.Pages.Projects 2 of 2 100.0%

For bd7409f. Full report in the CI run summary.

- Dependencies: MailKit 5.0 (MimeKit.Core, no BouncyCastle; drops the
  System.Security.Cryptography.Pkcs pin; one using for the new send
  API), MudBlazor 9.14, OpenTelemetry 1.21, Microsoft.Extensions.Http
  .Resilience and ServiceDiscovery 10.11.1, Test SDK 18.12, coverlet
  10.1.1, xunit runner 3.1.5, ReportGenerator 5.6.1, TypeScript 7.0.
- Deploy: package job publishes without rebuilding and retesting the
  already-checked commit; drop the redundant temp-folder step.
- CI: cache npm downloads.
- Dependabot: one grouped PR per ecosystem; skip major versions of
  packages tied to the .NET version.
- Version 1.0.1 and changelog.
@SamElhagDev SamElhagDev changed the title ci: pass the build as a run artifact instead of a release asset Release 1.0.1 Nov 29, 2026
@SamElhagDev
SamElhagDev merged commit b768e39 into main Nov 29, 2026
2 checks passed
@SamElhagDev
SamElhagDev deleted the ci/build-as-run-artifact branch November 29, 2026 20:09
SamElhagDev added a commit that referenced this pull request Nov 29, 2026
Finishes **Release 1.0.1**. When #12 was squash-merged, GitHub used an
older head of the branch, so its last two commits didn't land. They are
here unchanged:

- **License: all rights reserved** replaces the GNU AGPL v3.0
(`LICENSE`, README, CLAUDE.md, changelog). 1.0.0 stays AGPL for anyone
who got it under that license.
- **xunit.runner.visualstudio 4.0.1** (replaces #13); all 49 tests still
discovered and passing.
- **Docs:** `main` takes merge commits, squash, or rebase.

The `v1.0.1` release is published on this PR's merge commit.
SamElhagDev added a commit that referenced this pull request Nov 29, 2026
The coverage comment now covers a pull request from open to merged, for
every merge style.

**While the PR is open:** the existing **Coverage** comment, updated in
place on every push, now has a *vs main* column, the change against the
latest coverage of `main`.

**After it merges:** CI on the commit that lands on `main` adds a
**Coverage after merge** comment to the merged PR, compared with `main`
before the merge. The workflow finds the PR whose `merge_commit_sha` is
that commit, which is:

| Merge style | Commit on `main` that CI runs on |
|---|---|
| Merge commit | the merge commit |
| Squash | the squashed commit |
| Rebase | the last rebased commit |

Before this, the push to `main` skipped the comment, so a PR never
showed what actually landed (#12 is the example).

**Changes**
- `ci.yml`: on pushes to `main`, keep `Summary.json` as a
`main-coverage` artifact (90 days). That artifact is the baseline for
the comparison.
- `coverage-comment.yml`: handles both cases. The security model is
unchanged: it runs from `main`, never checks out PR code, checks the PR
number against the run's commit, and builds the comment from numbers
only.
- README: describes both comments.

**Testing:** both scripts were syntax-checked and dry-run against a real
`Summary.json` with a mocked API, which confirmed that the open-PR
comment updates in place and the merged comment is a separate one.

A `workflow_run` workflow always runs from `main`, so this PR still gets
the old-style comment. Its own merge is the first real run of the new
one: it will post "Coverage after merge" here, and because no
`main-coverage` artifact exists yet, that comment will have no
comparison column. From the next PR on, the comparison column appears.

No release needed: this changes CI only.
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.

1 participant