You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/upload.rs
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,17 @@ impl PublishOpt {
66
66
/// Set to non interactive mode if we're running on CI
67
67
pubfnnon_interactive_on_ci(&mutself){
68
68
if !self.non_interactive && env::var("CI").map(|v| v == "true").unwrap_or_default(){
69
+
let msg = "⚠️ Warning: The maturin upload and publish commands are deprecated and will be removed in the future. For more information see: https://github.com/PyO3/maturin/issues/2334";
70
+
eprintln!("{msg}");
71
+
72
+
if env::var("GITHUB_ACTIONS")
73
+
.map(|v| v == "true")
74
+
.unwrap_or_default()
75
+
{
76
+
// Also emit a warning annotation on the GH action
77
+
println!("::warning::{msg}");
78
+
}
79
+
69
80
eprintln!("🎛️ Running in non-interactive mode on CI");
0 commit comments