Skip to content

Commit 0a0f270

Browse files
committed
feat: add build script
1 parent d7deadd commit 0a0f270

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

build.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env bash
2+
3+
set -xeuo pipefail
4+
5+
if [[ ! -d "$PWD/build" ]]; then
6+
mkdir build
7+
fi
8+
9+
rm -rf build/*
10+
11+
pushd charts/codimd
12+
helm dependency update
13+
popd
14+
15+
pushd build
16+
helm package ../charts/codimd
17+
git checkout gh-pages
18+
helm repo index --merge ../index.yaml .
19+
mv codimd*.tgz ../
20+
mv index.yaml ../
21+
popd

0 commit comments

Comments
 (0)