publish¶
vb publish [--only] TAGS...
Description¶
Cause artifacts identified by TAGS… to be published (made non-private). This can be used (for example) to convert a private branch into a public branch, or to publish a bundle that was imported privately.
If any of TAGS names a branch, then all check-ins on the most recent instance of that branch are included, not just the most recent check-in.
If any of TAGS name check-ins then all files and tags associated with those check-ins are also published automatically. Except if the –only option is used, then only the specific artifacts identified by TAGS are published.
If a TAG is already public, this command is a harmless no-op.
Examples¶
Create a private branch and publish it
$ vb ci -m "base"
Committed version: 3ed4976f1ed00c3b32778c1ad039af67944d3fea26149f0c5ee09c3a8d137ad3
$ vb ci -m "private work" --branch feature/private --private
Committed version: 97ebd43a417cd9baa50be42476b4c4451a0e7fc2f66585a3b0ada2d9332ea2f8
$ vb publish feature/private
Publish only the current check-in
$ vb publish --only current