Skip to content

Commit f96c96e

Browse files
css521claude
andcommitted
release: publish releases (non-draft) so "latest" resolves; date 0.3.1
goreleaser `release.draft: true` -> `draft: false` + `prerelease: auto`. Draft releases are excluded from the GitHub "latest" API and the /releases/latest/download redirect, which breaks downstreams that always fetch the newest agentenv artifact (e.g. the devix image build). Publishing directly makes latest-resolution work; -rc/-beta tags stay pre-releases and won't become "latest" for stable consumers. Also updates the release workflow header to match, and stamps the 0.3.1 CHANGELOG date. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent f5c8bf5 commit f96c96e

3 files changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
name: Release
22

33
# Fires when a tag like v0.1.0 / v1.2.3 is pushed. Cross-compiles linux/amd64
4-
# + linux/arm64 via goreleaser, attaches them to a DRAFT GitHub release
5-
# (because `.goreleaser.yaml` sets `release.draft: true`) — review and
6-
# Publish in the GitHub UI when ready. Also builds + pushes multi-arch
7-
# container images to ghcr.io/css521/agentenv:<tag> + :latest.
4+
# + linux/arm64 via goreleaser and publishes a GitHub release directly
5+
# (`.goreleaser.yaml` sets `release.draft: false`, `prerelease: auto`), so the
6+
# GitHub "latest" API/redirect resolves it and downstreams can always fetch the
7+
# newest artifact. Also builds + pushes multi-arch container images to
8+
# ghcr.io/css521/agentenv:<tag> + :latest.
89

910
on:
1011
push:

.goreleaser.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,12 @@ docker_manifests:
7777
- "ghcr.io/css521/agentenv:{{ .Version }}-amd64"
7878
- "ghcr.io/css521/agentenv:{{ .Version }}-arm64"
7979

80+
# Publish releases (not drafts) so downstreams can resolve the newest build via
81+
# the GitHub "latest" API/redirect (api.github.com/repos/<slug>/releases/latest
82+
# and /releases/latest/download/<asset>). Draft releases are excluded from both,
83+
# which breaks "always fetch the latest agentenv artifact" consumers.
84+
# prerelease: auto marks -rc/-beta tags as pre-releases so they don't become
85+
# "latest" for stable consumers.
8086
release:
81-
draft: true
87+
draft: false
88+
prerelease: auto

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to this project are documented here. The format is based on
44
[Keep a Changelog](https://keepachangelog.com/), and the project aims to follow
55
[Semantic Versioning](https://semver.org/).
66

7-
## [0.3.1]
7+
## [0.3.1] - 2026-07-02
88

99
### Added
1010
- **Zero-downtime auto-upgrade** (`agentenv daemon`): the daemon can hot-swap

0 commit comments

Comments
 (0)