Skip to content

Commit

Permalink
pull
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfiex committed Dec 12, 2023
1 parent cbf7e88 commit 4fab7d4
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,25 @@ jobs:
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git checkout -b production
find . -type f ! -path './site*' ! -path './.*' -exec echo {} +
find . -type f ! -path './site*' ! -path './.*' -exec rm -f {} +
rm -rf docs
mv site docs
touch .nojekyll
git add .
git commit -m "Content update"
# git checkout -b production
# find . -type f ! -path './site*' ! -path './.*' -exec echo {} +
# find . -type f ! -path './site*' ! -path './.*' -exec rm -f {} +
# rm -rf docs
# mv site docs
# touch .nojekyll
# git add .
# git commit -m "Content update"
# Fetch and pull changes from the remote "production" branch:
git fetch origin production
git branch --set-upstream-to=origin/production production
git pull --rebase
# Backup the current state of the production branch
git branch backup-production
git checkout backup-production
git push origin backup-production
# Update the production branch with force push
git checkout production
git rebase origin/production
git push -f origin production
git rm */*

git checkout main -- site
git mv site docs
git push origin production

0 comments on commit 4fab7d4

Please sign in to comment.