mirror of
https://github.com/knex/knex.git
synced 2025-07-03 23:19:26 +00:00
22 lines
314 B
Bash
22 lines
314 B
Bash
![]() |
#!/usr/bin/env sh
|
||
|
|
||
|
# abort on errors
|
||
|
set -e
|
||
|
|
||
|
# build
|
||
|
npm run build
|
||
|
|
||
|
# navigate into the build output directory
|
||
|
cd .vitepress/dist
|
||
|
|
||
|
# if you are deploying to a custom domain
|
||
|
# echo 'www.example.com' > CNAME
|
||
|
|
||
|
git init
|
||
|
git add -A
|
||
|
git commit -m 'deploy'
|
||
|
|
||
|
git push -f git@github.com:knex/knex.git master:gh-pages
|
||
|
|
||
|
cd -
|