Skip to content

Commit

Permalink
fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfiex committed Dec 12, 2023
1 parent 9e5d81d commit 03bf16d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
run: |
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 {} +
Expand All @@ -37,6 +38,8 @@ jobs:
git add .
git commit -m "Content update"
git fetch origin production
# Backup the current state of the production branch
git branch backup-production
git checkout backup-production
Expand Down

0 comments on commit 03bf16d

Please sign in to comment.