Skip to content

Commit 32e1ebf

Browse files
committed
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
1 parent a3425ae commit 32e1ebf

8 files changed

Lines changed: 21 additions & 12 deletions

File tree

.github/workflows/release-crate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Crates.io Release
1+
name: Crates.io CLI Release
22

33
on:
44
push:
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88
inputs:
99
tag:
10-
description: "Release tag (e.g. v0.3.35)"
10+
description: "Release tag (e.g. v0.3.38)"
1111
required: true
1212

1313
permissions:

.github/workflows/release-github.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: GitHub Release
1+
name: GitHub CLI Release
22

33
on:
44
push:
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88
inputs:
99
tag:
10-
description: "Release tag (e.g. v0.3.35)"
10+
description: "Release tag (e.g. v0.3.38)"
1111
required: true
1212

1313
permissions:

.github/workflows/release-homebrew.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: Homebrew Release
1+
name: Homebrew CLI Release
22

33
on:
44
workflow_dispatch:
55
inputs:
66
tag:
7-
description: "Release tag (e.g. v0.3.36)"
7+
description: "Release tag (e.g. v0.3.38)"
88
required: true
99

1010
permissions:

.github/workflows/release-npm.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: NPM Release
1+
name: NPM CLI Release
22

33
on:
44
push:
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88
inputs:
99
tag:
10-
description: "Release tag (e.g. v0.3.35)"
10+
description: "Release tag (e.g. v0.3.38)"
1111
required: true
1212

1313
permissions:

.github/workflows/release-pypi.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
name: PyPI Release
1+
name: PyPI CLI Release
22

33
on:
44
push:
55
tags:
66
- "v*.*.*"
77
workflow_dispatch:
8+
inputs:
9+
tag:
10+
description: "Release tag (e.g. v0.3.38)"
11+
required: true
812

913
permissions:
1014
id-token: write

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "smbcloud-cli"
3-
version = "0.3.37"
3+
version = "0.3.38"
44
edition = "2021"
55
authors = ["Seto Elkahfi <hej@setoelkahfi.se>"]
66
description = "smbCloud command line interface."

crates/cli/src/deploy/process_deploy_nextjs_ssr.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,11 @@ pub async fn process_deploy_nextjs_ssr(env: Environment, config: Config) -> Resu
235235
let local_path = format!("{}/{}", source, local_rel);
236236
let destination = format!("{}{}", remote_base, remote_rel);
237237

238+
// Skip optional directories that the project does not have.
239+
if !std::path::Path::new(&local_path).exists() {
240+
continue;
241+
}
242+
238243
let output = Command::new("rsync")
239244
.args([
240245
"-az",
@@ -305,7 +310,7 @@ echo "Starting $PM2_APP with pm2..."
305310
if pm2 describe "$PM2_APP" > /dev/null 2>&1; then
306311
pm2 delete "$PM2_APP"
307312
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
309314
pm2 save
310315
echo "Done."
311316
"#,

0 commit comments

Comments
 (0)