Skip to content

ci: give the package artifact a retention period - #71

Merged
kkdev92 merged 1 commit into
mainfrom
ci/artifact-retention-days
Sep 21, 2026
Merged

kkdev92 merged 1 commit into
mainfrom
ci/artifact-retention-days

Conversation

@kkdev92

@kkdev92 kkdev92 commented Sep 21, 2026

Copy link
Copy Markdown
Owner

Sets a retention period on the package artifact that CI uploads.

Why

The nupkg upload in ci.yml never set retention-days, so it fell back to
this repository's default artifact retention of 90 days. Those packages are
build output: every run produces a fresh set, and no workflow reads an older
one. They were occupying the artifact storage allowance for three months to no
purpose.

The coverage upload earlier in the same workflow already uses
retention-days: 14. This reuses that value rather than introducing a second
number.

What this does not change

release.yml is untouched. The packages behind a release are published to
nuget.org and attached to the GitHub release, so how long CI keeps its own copy
is a separate decision from how a release is handled.

Verification

retention-days governs only how long an artifact survives after the run that
produced it. A download within the same run is unaffected.

One thing is worth being explicit about, because the names collide:
release.yml also uploads an artifact called nupkg, and downloads it in three
places. Those are separate artifacts scoped to their own runs. Each of the three
download-artifact steps passes only name and path — no run-id, no
github-token, no repository — so every one of them resolves within the run
that is executing. Nothing reads CI's copy from a later run, and the release
path does not depend on how long CI keeps its own.

@kkdev92 kkdev92 changed the title ci: add retention-days to the CI package artifact ci: give the package artifact a retention period Sep 21, 2026
@kkdev92
kkdev92 force-pushed the ci/artifact-retention-days branch from 0740198 to 098b374 Compare September 21, 2026 05:59
The `nupkg` upload in `ci.yml` never set `retention-days`, so it fell back to
this repository's default artifact retention of 90 days. Every run builds a
fresh set of packages and no workflow reads an older one, so they were counting
against the artifact storage allowance for three months to no purpose.

The `coverage` upload earlier in the same workflow already uses 14 days. Reuse
that value rather than introducing a second number.

`release.yml` is left alone. It uploads and downloads an artifact that is also
named `nupkg`, which is a separate artifact scoped to its own run: those steps
pass only a name and a path, so each resolves within the run that is executing.
How long CI keeps its own copy is a separate question from how a release is
handled.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@kkdev92
kkdev92 force-pushed the ci/artifact-retention-days branch from 098b374 to 4696a59 Compare September 21, 2026 06:12
@kkdev92
kkdev92 merged commit 6bb318f into main Sep 21, 2026
10 checks passed
@kkdev92
kkdev92 deleted the ci/artifact-retention-days branch September 21, 2026 06:16
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