Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfiex authored Dec 12, 2023
1 parent c2528d2 commit a4c44bd
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,25 @@ jobs:
git fetch --all
# Check if there are any local changes
if [ -n "$(git status --porcelain)" ]; then
# If there are changes, commit them
git add .
git commit -m "Committing local changes before switching branches"
else
echo "No local changes to commit."
fi

git checkout production

# Remove files and directories from the production branch
git rm -r --ignore-unmatch */*


git checkout main -- site


git mv site docs
git add -A
git commit -m "Content update"
git mv site docs

git push

0 comments on commit a4c44bd

Please sign in to comment.