diff --git a/deployment.sh b/deployment.sh index 7aeb8f2..20e3725 100644 --- a/deployment.sh +++ b/deployment.sh @@ -16,7 +16,7 @@ echo > .nojekyll # echo 'www.example.com' > CNAME git init -git checkout -B master +git checkout -B main git add -A git commit -m 'deploy' @@ -24,6 +24,6 @@ git commit -m 'deploy' # git push -f git@github.com:/.github.io.git main # if you are deploying to https://.github.io/ -git push -f git@github.com:Certsoftt/faztar.git master:gh-pages +git push -f git@github.com:Certsoftt/brower-code-editor.git main:gh-pages cd - \ No newline at end of file diff --git a/package.json b/package.json index 75f50df..acd815f 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "code editor" ], "description": "A browser-code editor that will serve the purpose writing code, cleaning and fixing noisy code, build, edit and deploy web pages", - "homepage": "https://github.com/certsoftt/brower-code-editor", + "homepage": "https://certsoftt.github.io/brower-code-editor", "repository": { "type": "git", "url": "https://github.com/certsoftt/brower-code-editor.git" @@ -44,7 +44,9 @@ "lint": "eslint .", "lint:fix": "eslint . --fix", "preview": "vite preview", - "prepare": "husky" + "prepare": "husky", + "predeploy":"npm run build", + "deploy": "gh-pages -d build" }, "eslintConfig": { "extends": [