Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Publish release and run artifacts as file trees

5f2a0b0a7f84ec1bb43af5213e5c788039b72222 · Keenan Nemetz · 20d ago · parent 6d574bec

Publish release and run artifacts as file trees

Release pointers and run outputs are now slash-separated paths. A flat name is
a one-segment path, so every existing release, pointer, URL, and workflow that
uses dist/* keeps working.

- metadata validates artifact paths, lists and loads them recursively, and
  refuses a tag that would make the tag/path boundary ambiguous
- vole release attach keeps a directory's relative paths; a plain file keeps its
  base name
- a workflow match is published relative to the declaration's static root, so
  dist/* stays flat while dist/*/* keeps one directory level
- release and run download routes accept nested paths; Content-Disposition still
  saves the base name
- one internal rule is shared by the pointer writer, metadata validator, run
  record, CLI, and routes so they cannot disagree

Refs: 01M7BPH6RRPK2934FCHVJPQNGY

docs/reference/workflow-reference.md +10−2

@@ -847,8 +847,16 @@ artifacts:
847 847 not files in `dist/sub/`.
848 848 - `**` is rejected; use `dist/*` or declare more patterns.
849 849 - A pattern that matches nothing fails the job.
850 - Two matches with the same base name are refused because they would publish under
851 the same download name.
850 - A match is published under the path it has relative to the declaration's
851 static root, which is the segments before the first glob. `dist/*` publishes
852 base names, the behavior existing workflows use; `dist/*/*` keeps one directory
853 level (`apt/Packages`); `dist/apt/*` publishes base names; a literal path
854 publishes its base name. The same paths are used for run downloads and release
855 attachments.
856 - Two matches that resolve to the same published path are refused because they
857 would publish under one name.
858 - A published path is slash-separated, at most 1024 bytes, and may not contain an
859 empty segment, `.`, `..`, a backslash, or a control character.
852 860 - `.git` is never published; symlinks and non-regular files are skipped.
853 861
854 862 `release: true` requires the workflow to declare `on.push.tags`. The job must run