Skip to content

Commit b13bd16

Browse files
committed
Fix bug where pypi publish is always created
1 parent 95d0c80 commit b13bd16

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/project_generator.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,10 @@ pub fn generate_project(project_info: &ProjectInfo) -> Result<()> {
679679
}
680680
}
681681

682-
if save_pypi_publish_file(project_info).is_err() {
683-
bail!("Error creating PYPI publish file");
682+
if project_info.use_continuous_deployment {
683+
if save_pypi_publish_file(project_info).is_err() {
684+
bail!("Error creating PYPI publish file");
685+
}
684686
}
685687

686688
if project_info.use_multi_os_ci {

0 commit comments

Comments
 (0)