Skip to content

Commit

Permalink
skip hidden directories
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfiex authored Dec 12, 2023
1 parent 19e96a7 commit 6e762f7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ jobs:
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
# git branch --delete production
# git checkout -b production # Replace 'documentation' with the desired branch name
git checkout production
find . -type f ! -regex '^./site\(/.*\)?' ! -name '.*' -exec echo {} +
find . -type f ! -regex '^./site\(/.*\)?' ! -name '.*' -exec rm -f {} +
git checkout -b production # Replace 'documentation' with the desired branch name
# git checkout production
find . -type f ! -regex '^./site\(/.*\)?' ! -path './.*/' -exec echo {} +
find . -type f ! -regex '^./site\(/.*\)?' ! -path './.*/' -exec rm -f {} +
# rm -rf docs
mv site docs
git add .
git commit -m "Content update"
Expand Down

0 comments on commit 6e762f7

Please sign in to comment.