mirror of
https://github.com/Snigdha-OS/Snigdha-OS.github.io.git
synced 2025-09-06 04:35:18 +02:00
26 lines
459 B
Bash
26 lines
459 B
Bash
#!/usr/bin/env sh
|
|
|
|
# abort on errors
|
|
set -e
|
|
|
|
# build
|
|
npm run build
|
|
|
|
# navigate into the build output directory
|
|
cd dist
|
|
|
|
# place .nojekyll to bypass Jekyll processing
|
|
echo > .nojekyll
|
|
|
|
# if you are deploying to a custom domain
|
|
# echo 'www.example.com' > CNAME
|
|
|
|
git init
|
|
git checkout -B main
|
|
git add -A
|
|
git commit -m 'deploy'
|
|
|
|
# if you are deploying to https://<USERNAME>.github.io/<REPO>
|
|
git push -f git@github.com:<USERNAME>/snigdha-os.git main:gh-pages
|
|
|
|
cd - |