deployment script defaults to prod
This commit is contained in:
parent
cdb301cc29
commit
5dfe62bb8b
|
@ -1,8 +1,9 @@
|
|||
#!/bin/bash -ex
|
||||
npm run build
|
||||
|
||||
REPO=${1:-git@codeberg.org:docs/pages}
|
||||
rm -rf pages.git
|
||||
git clone $1 pages.git
|
||||
git clone $REPO pages.git
|
||||
rsync -av _site/* pages.git/
|
||||
( cd pages.git && git checkout --orphan current ) ## create new branch at origin
|
||||
( cd pages.git && git add -A ) ## add all generated files
|
||||
|
|
Loading…
Reference in a new issue