Skip to content

Commit 330f203

Browse files
authored
Merge pull request #945 from sanders41/pypi-publish
Don't include pypi publish workflow in fastapi projects
2 parents c9c5b6f + 56c47e8 commit 330f203

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
@@ -1556,8 +1556,10 @@ pub fn generate_project(project_info: &ProjectInfo) -> Result<()> {
15561556

15571557
#[cfg(feature = "fastapi")]
15581558
if project_info.use_continuous_deployment {
1559-
if project_info.is_fastapi_project && save_deploy_files(project_info).is_err() {
1560-
bail!("Error creating deploy files");
1559+
if project_info.is_fastapi_project {
1560+
if save_deploy_files(project_info).is_err() {
1561+
bail!("Error creating deploy files");
1562+
}
15611563
} else if save_pypi_publish_file(project_info).is_err() {
15621564
bail!("Error creating PyPI publish file");
15631565
}

0 commit comments

Comments
 (0)