Skip to content

Commit

Permalink
Update deploy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
unitsvc authored Dec 7, 2023
1 parent 98c3194 commit dbef359
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@
#!/usr/bin/env sh

# enable throw error
set -e

# build static pages
npm run build

# enter build
cd build

# publish pages
git init
git add -A
git commit -m 'deploy'
git push -f https://github.com/unitsvc/unitsvc.github.io.git master:gh-pages

# switch origin directory
cd -

# remove build pages
rm -rf ./build

0 comments on commit dbef359

Please sign in to comment.