Skip to content

Commit 263147d

Browse files
committed
v1.4.0
1 parent a3be1ab commit 263147d

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

deploy.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash
2+
set -e
3+
4+
server=$1
5+
folder=$2
6+
version=$3
7+
8+
if [ -z "$server" ] || [ -z "$folder" ] || [ -z "$version" ]; then
9+
echo "Usage: $0 <server> <folder> <version>"
10+
echo "Example: $0 user@example.com /var/www/apps 1.3.0"
11+
exit 1
12+
fi
13+
14+
# Extract subversion by dropping the last digit (e.g., 1.3.0 -> 1.3)
15+
subversion=$(echo "$version" | sed 's/\.[0-9]*$//')
16+
17+
echo "Deploying version: $version"
18+
echo "Creating subversion link: $subversion"
19+
20+
# Create version directory and upload files
21+
ssh $server "mkdir -p ${folder}/${version}"
22+
scp -r dist/worker.js "$server:${folder}/${version}/worker.js"
23+
scp -r dist/module.js "$server:${folder}/${version}/module.js"
24+
scp -r pkg/json2excel_wasm_bg.wasm "$server:${folder}/${version}/json2excel_wasm_bg.wasm"
25+
26+
# Remove existing subversion link and create new one
27+
ssh $server "cd \"${folder}\" && rm -f \"./${subversion}\" && ln -s \"${version}\" \"${subversion}\""
28+
29+
echo "Deployment complete!"

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "json2excel-wasm",
33
"description": "WASM based web worker for converting excel data to raw json",
44
"keywords": ["excel", "convert", "wasm"],
5-
"version": "1.3.1",
5+
"version": "1.4.0",
66
"license": "MIT",
77
"collaborators": [
88
"Aleksei Kolosov <akolosov@xbsoftware.com>",
@@ -13,6 +13,10 @@
1313
"url": "https://github.com/DHTMLX/json2excel"
1414
},
1515
"files": [
16+
"pkg/json2excel_wasm_bg.wasm",
17+
"pkg/json2excel_wasm.js",
18+
"pkg/json2excel_wasm_bg.js",
19+
"pkg/json2excel_wasm.d.ts",
1620
"dist/worker.js",
1721
"dist/module.js"
1822
],

0 commit comments

Comments
 (0)