Skip to content

Commit 7f5f82c

Browse files
committed
update deployment scripts
1 parent c6cda87 commit 7f5f82c

182 files changed

Lines changed: 9 additions & 33242 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

deploy.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
echo -e "\033[0;32mDeploying updates to GitHub...\033[0m"
44

5-
# Build the project.
5+
echo "Building the project"
66
hugo # if using a theme, replace with `hugo -t <YOURTHEME>`
77

88
# Go To Public folder
@@ -15,19 +15,24 @@ msg="rebuilding site `date`"
1515
if [ $# -eq 1 ]
1616
then msg="$1"
1717
fi
18+
1819
git commit -m "$msg"
1920

2021
# Come Back up to the Project Root
2122
cd ..
22-
# Clean old docs
23+
24+
echo "Clean old docs...."
25+
2326
rm -rf ./docs/
2427

2528
mv ./public/ ./docs/
2629

30+
git add -A
31+
2732
# Copy Public to Docs
28-
#cp -vr public docs
33+
git commit -m "move Public to docs"
2934

3035
# Push source and build repos.
31-
git push origin main
36+
git push
3237

3338

0 commit comments

Comments
 (0)