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 a directory declaration as a tree

4f8a3da8f7801735ab7ab719b3fda3f39cb7e070 · Keenan Nemetz · 19d ago · parent 5f2a0b0a

Publish a directory declaration as a tree

A workflow artifact path with no glob that names a directory now publishes every
regular file under it, relative to that directory. `dist` gives
`apt/Packages` and `yum/repodata/repomd.xml`; `dist/apt` gives `Packages`. A
glob keeps the static-root rule, and `.` is refused so a declaration cannot
accidentally publish the whole checkout.

This matches `vole release attach <tag> <dir>` and removes the need for
depth-specific globs or a staging copy when a build already has a package tree.

Refs: 01M7BPH6RRPK2934FCHVJPQNGY

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

@@ -842,17 +842,22 @@ artifacts:
842 842
843 843 - Must be relative to the checkout; absolute paths and `..` segments are rejected.
844 844 - Maximum 256 bytes.
845 - Must name files, not a directory: a trailing `/` is rejected.
846 - Uses one-segment glob semantics. `dist/*` matches files directly in `dist/` but
847 not files in `dist/sub/`.
848 - `**` is rejected; use `dist/*` or declare more patterns.
845 - May name a file, a directory, or a glob. A trailing `/` is rejected; write
846 `dist`, not `dist/`. `.` is the checkout root and is refused.
847 - A directory declaration publishes every regular file under it, relative to
848 that directory: `dist/apt` publishes `Packages`, while `dist` publishes
849 `apt/Packages`, `yum/repodata/repomd.xml`, and the flat files beside them.
850 - A glob uses one-segment glob semantics. `dist/*` matches files directly in
851 `dist/` but not files in `dist/sub/`.
852 - `**` is rejected; use a directory declaration or more patterns.
849 853 - A pattern that matches nothing fails the job.
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.
854 - A match from a glob is published under the path it has relative to the
855 declaration's static root, which is the segments before the first glob.
856 `dist/*` publishes base names, the behavior existing workflows use; `dist/*/*`
857 keeps one directory level (`apt/Packages`); `dist/apt/*` publishes base names;
858 a literal path publishes its base name. A directory declaration uses the
859 directory itself as the root. The same paths are used for run downloads and
860 release attachments.
856 861 - Two matches that resolve to the same published path are refused because they
857 862 would publish under one name.
858 863 - A published path is slash-separated, at most 1024 bytes, and may not contain an