Skip to content

Commit

Permalink
chore: add deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienwnklr committed Jan 8, 2024
1 parent 46d8b4b commit 607ec9a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
"release": "npm run build && standard-version",
"release:patch": "npm run build && standard-version --release-as patch && git push --follow-tags origin master && npm publish --access public",
"release:minor": "npm run build && standard-version --release-as minor && git push --follow-tags origin master && npm publish --access public",
"release:major": "npm run build && standard-version --release-as major && git push --follow-tags origin master && npm publish --access public"
"release:major": "npm run build && standard-version --release-as major && git push --follow-tags origin master && npm publish --access public",
"deploy": "sh scripts/deploy.sh"
},
"devDependencies": {
"@commitlint/cli": "^17.7.2",
Expand Down
20 changes: 20 additions & 0 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env sh

# abort on errors
set -e

# build
cd docs/ && yarn build

# navigate into the build output directory
cd build


git init
git add -A
git commit -m 'deploy'

# if you are deploying to https://github.com/<USER>/<REPO>.git
git push -f https://github.com/fabienwnklr/drawer-doc.git master

cd -

0 comments on commit 607ec9a

Please sign in to comment.