mirror of
https://github.com/Rakantor/personal-portfolio.git
synced 2025-12-17 19:36:32 +01:00
Update GitHub Pages deploy script
This commit is contained in:
7
gh-pages-deploy.sh
Normal file → Executable file
7
gh-pages-deploy.sh
Normal file → Executable file
@@ -4,16 +4,19 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# build
|
# build
|
||||||
npm run build
|
npx nuxi generate
|
||||||
|
|
||||||
# navigate into the build output directory
|
# navigate into the build output directory
|
||||||
cd dist
|
cd .output/public
|
||||||
|
touch .nojekyll
|
||||||
|
|
||||||
# if you are deploying to a custom domain
|
# if you are deploying to a custom domain
|
||||||
echo 'mave.dev' > CNAME
|
echo 'mave.dev' > CNAME
|
||||||
|
|
||||||
git init
|
git init
|
||||||
git add -A
|
git add -A
|
||||||
|
git config --local user.email "rakantor.dev@gmail.com"
|
||||||
|
git config --local user.name "Rakantor"
|
||||||
git commit -m 'deploy'
|
git commit -m 'deploy'
|
||||||
|
|
||||||
# if you are deploying to https://<USERNAME>.github.io
|
# if you are deploying to https://<USERNAME>.github.io
|
||||||
|
|||||||
Reference in New Issue
Block a user