Skip to content

Commit 6312d72

Browse files
docs: add deploy script for github pages
1 parent 4e6302a commit 6312d72

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

website/deploy/gh-pages.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# This script will build the website and push it to the gh-pages branch,
2+
# publishing it automatically to https://bitcoindevkit.github.io/devkit-wallet/.
3+
4+
set -euo pipefail
5+
6+
just clean
7+
just build
8+
cd ./site/
9+
git init .
10+
git switch --create gh-pages
11+
git add .
12+
git commit --message "Deploy $(date +"%Y-%m-%d")"
13+
git remote add upstream git@github.com:bitcoindevkit/devkit-wallet.git
14+
git push upstream gh-pages --force
15+
cd ..

0 commit comments

Comments
 (0)