Print public HTTPS URL of uploaded artefact

After a successful S3 upload, log the HTTPS URL so the workflow run
output shows where the artefact was published. Uses the regional
virtual-hosted form for AWS S3 and path-style for custom endpoints,
matching how NewClient configures the client.

The URL is what the object would be served at if the bucket allows
public reads — the orchestrator does not assert anything about the
bucket's access policy.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Leon Mika 2026-05-02 13:54:57 +10:00
parent d8f5309a73
commit 78f63e640f
3 changed files with 57 additions and 0 deletions

View file

@ -174,6 +174,7 @@ func run(ctx context.Context) error {
if err != nil {
return err
}
fmt.Println("Uploaded to:", upload.HTTPSURL(cfg.S3Bucket, key, cfg.S3Region, cfg.S3EndpointURL))
}
// 8. Outputs (fixed order so partial-write failures are reproducible)