deno.land / x / fuse@v6.4.1 / scripts / deploy-docs.sh

deploy-docs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env sh
# abort on errorsset -e
read -p "Do you want to publish the website? (y/n) " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then # build npm run docs:build # navigate into the build output directory cd docs/.vuepress/dist echo 'fusejs.io' > CNAME git init git add -A git commit -m 'docs(site): publish site' git push -f git@github.com:krisk/fuse.git master:gh-pages echo "✅ Pushed to GitHub"else echo "\033[0;31mCancelling...\033[0m"fi
fuse

Version Info

Tagged at
3 years ago