@smbcloud / cli / commits / 32e1ebf

Bump version to 0.3.38 and update release workflow names

Skip missing optional directories in Next.js SSR deploy Set NODE_ENV=production in pm2 start for Next.js SSR

keypair34 committed Apr 19, 2026 at 11:13 UTC 32e1ebf45e6a31d37e018859ea2665228e4da297
8 files changed +21 -12
.github/workflows/release-crate.yml
+2 -2
@@ -1,4 +1,4 @@
1 -name: Crates.io Release
1 +name: Crates.io CLI Release
2
3 on:
4 push:
@@ -7,7 +7,7 @@ on:
7 workflow_dispatch:
8 inputs:
9 tag:
10 - description: "Release tag (e.g. v0.3.35)"
10 + description: "Release tag (e.g. v0.3.38)"
11 required: true
12
13 permissions:
.github/workflows/release-github.yml
+2 -2
@@ -1,4 +1,4 @@
1 -name: GitHub Release
1 +name: GitHub CLI Release
2
3 on:
4 push:
@@ -7,7 +7,7 @@ on:
7 workflow_dispatch:
8 inputs:
9 tag:
10 - description: "Release tag (e.g. v0.3.35)"
10 + description: "Release tag (e.g. v0.3.38)"
11 required: true
12
13 permissions:
.github/workflows/release-homebrew.yml
+2 -2
@@ -1,10 +1,10 @@
1 -name: Homebrew Release
1 +name: Homebrew CLI Release
2
3 on:
4 workflow_dispatch:
5 inputs:
6 tag:
7 - description: "Release tag (e.g. v0.3.36)"
7 + description: "Release tag (e.g. v0.3.38)"
8 required: true
9
10 permissions:
.github/workflows/release-npm.yml
+2 -2
@@ -1,4 +1,4 @@
1 -name: NPM Release
1 +name: NPM CLI Release
2
3 on:
4 push:
@@ -7,7 +7,7 @@ on:
7 workflow_dispatch:
8 inputs:
9 tag:
10 - description: "Release tag (e.g. v0.3.35)"
10 + description: "Release tag (e.g. v0.3.38)"
11 required: true
12
13 permissions:
.github/workflows/release-pypi.yml
+5 -1
@@ -1,10 +1,14 @@
1 -name: PyPI Release
1 +name: PyPI CLI Release
2
3 on:
4 push:
5 tags:
6 - "v*.*.*"
7 workflow_dispatch:
8 + inputs:
9 + tag:
10 + description: "Release tag (e.g. v0.3.38)"
11 + required: true
12
13 permissions:
14 id-token: write
Cargo.lock
+1 -1
@@ -2521,7 +2521,7 @@ dependencies = [
2521
2522 [[package]]
2523 name = "smbcloud-cli"
2524 -version = "0.3.37"
2524 +version = "0.3.38"
2525 dependencies = [
2526 "anyhow",
2527 "chrono",
crates/cli/Cargo.toml
+1 -1
@@ -1,6 +1,6 @@
1 [package]
2 name = "smbcloud-cli"
3 -version = "0.3.37"
3 +version = "0.3.38"
4 edition = "2021"
5 authors = ["Seto Elkahfi <hej@setoelkahfi.se>"]
6 description = "smbCloud command line interface."
crates/cli/src/deploy/process_deploy_nextjs_ssr.rs
+6 -1
@@ -235,6 +235,11 @@ pub async fn process_deploy_nextjs_ssr(env: Environment, config: Config) -> Resu
235 let local_path = format!("{}/{}", source, local_rel);
236 let destination = format!("{}{}", remote_base, remote_rel);
237
238 + // Skip optional directories that the project does not have.
239 + if !std::path::Path::new(&local_path).exists() {
240 + continue;
241 + }
242 +
243 let output = Command::new("rsync")
244 .args([
245 "-az",
@@ -305,7 +310,7 @@ echo "Starting $PM2_APP with pm2..."
310 if pm2 describe "$PM2_APP" > /dev/null 2>&1; then
311 pm2 delete "$PM2_APP"
312 fi
308 -PORT={port} HOSTNAME=127.0.0.1 pm2 start node --name "$PM2_APP" -- server.js
313 +NODE_ENV=production PORT={port} HOSTNAME=127.0.0.1 pm2 start node --name "$PM2_APP" -- server.js
314 pm2 save
315 echo "Done."
316 "#,