Skip to content

Commit

Permalink
fix configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
leogsouza committed Dec 13, 2020
1 parent 6d1be8f commit 245715b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
public/
.idea/
resources/_gen
48 changes: 24 additions & 24 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
#!/bin/sh

# If a command fails then the deploy stops
set -e

printf "\033[0;32mDeploying updates to GitHub...\033[0m\n"

# Build the project.
hugo -d ../leogsouza.github.io # if using a theme, replace with `hugo -t <YOURTHEME>`

# Go To Public folder
cd ../leogsouza.github.io

# Add changes to git.
git add .

# Commit changes.
msg="rebuilding site $(date)"
if [ -n "$*" ]; then
msg="$*"
fi
git commit -m "$msg"

# Push source and build repos.
#!/bin/sh

# If a command fails then the deploy stops
set -e

printf "\033[0;32mDeploying updates to GitHub...\033[0m\n"

# Build the project.
hugo -d ../leogsouza.github.io # if using a theme, replace with `hugo -t <YOURTHEME>`

# Go To Public folder
cd ../leogsouza.github.io

# Add changes to git.
git add .

# Commit changes.
msg="rebuilding site $(date)"
if [ -n "$*" ]; then
msg="$*"
fi
git commit -m "$msg"

# Push source and build repos.
git push origin master

0 comments on commit 245715b

Please sign in to comment.