Skip to content

ci: drop release workflow artifacts after publishing#1

Merged
Blubern merged 1 commit into
mainfrom
chore/release-artifact-cleanup
May 23, 2026
Merged

ci: drop release workflow artifacts after publishing#1
Blubern merged 1 commit into
mainfrom
chore/release-artifact-cleanup

Conversation

@Blubern
Copy link
Copy Markdown
Owner

@Blubern Blubern commented May 23, 2026

Changes

  • Set retention-days: 1 on native asset uploads
  • Disable docker/build-push-action's .dockerbuild artifact uploads via DOCKER_BUILD_SUMMARY=false and DOCKER_BUILD_RECORD_UPLOAD=false
  • Add a cleanup job at the end of the workflow that deletes all of the run's workflow artifacts once the GitHub Release has been published

Why

Release assets live on the GH Release page, the image lives in GHCR -- workflow artifacts are only transport between the build and release jobs. Previously they kept the 90-day default and accumulated (~107 MB across recent runs).

- Set retention-days: 1 on native asset uploads
- Disable docker/build-push-action *.dockerbuild artifact uploads via
  DOCKER_BUILD_SUMMARY=false and DOCKER_BUILD_RECORD_UPLOAD=false
- Add cleanup job that deletes all workflow artifacts of the run after
  the GitHub Release has been published. Assets live on the release page,
  the image lives in GHCR; workflow artifacts are only transport.
@Blubern Blubern merged commit e509871 into main May 23, 2026
2 checks passed
@Blubern Blubern deleted the chore/release-artifact-cleanup branch May 23, 2026 12:38
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