Skip to content

Commit

Permalink
Add docs:deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
pearmini committed Sep 30, 2024
1 parent f934d51 commit f2d0b60
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Deploy the docs to the `docs` branch.

git branch -D docs
git checkout -b docs next
sed -i '' '/dist/d' .gitignore
npm run build
git add .
git commit -m "Update docs"
git push origin docs -f
git checkout -
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"prepublishOnly": "npm run build",
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs"
"docs:preview": "vitepress preview docs",
"docs:deploy": "bash deploy.sh"
},
"sideEffects": false,
"devDependencies": {
Expand Down

0 comments on commit f2d0b60

Please sign in to comment.