init commit
This commit is contained in:
commit
c0ee8a4a11
54 changed files with 1055 additions and 0 deletions
31
deploy.sh
Executable file
31
deploy.sh
Executable file
|
|
@ -0,0 +1,31 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
# abort on errors
|
||||
set -e
|
||||
|
||||
# clean up previous
|
||||
rm -rf dist
|
||||
|
||||
# build website
|
||||
bun run build
|
||||
|
||||
# change to build directory
|
||||
cd dist
|
||||
|
||||
# create .nojekyll file
|
||||
touch .nojekyll
|
||||
|
||||
# git init
|
||||
git init
|
||||
|
||||
# git remote (required for .gitconfig)
|
||||
git remote add origin git@github.com:chora-io/website.git
|
||||
|
||||
# git commit
|
||||
git add -A
|
||||
git commit -m 'publish'
|
||||
|
||||
# push to gh-pages branch
|
||||
git push origin main:gh-pages -f
|
||||
|
||||
cd -
|
||||
Loading…
Add table
Add a link
Reference in a new issue