File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1+ Fix CLI explicitly creating a publication after package upload when repo has autopublish enabled
Original file line number Diff line number Diff line change @@ -401,7 +401,12 @@ def upload(
401401
402402 # Sanity: ignore publish|use_temp unless destination-repository has been specified
403403 use_tmp = final_dest_repo_ctx and kwargs ["use_temp_repository" ]
404- do_publish = final_dest_repo_ctx and kwargs ["publish" ]
404+ # Publish if autopublish is not enabled on the repository
405+ do_publish = (
406+ final_dest_repo_ctx
407+ and kwargs ["publish" ]
408+ and not final_dest_repo_ctx .entity ["autopublish" ]
409+ )
405410
406411 # Sanity: ignore relative_path if directory specified
407412 if directory and kwargs ["relative_path" ]:
You can’t perform that action at this time.
0 commit comments