Skip to content

Commit

Permalink
process file again
Browse files Browse the repository at this point in the history
  • Loading branch information
claytoncollie committed Sep 16, 2024
1 parent d52cd6d commit 3509cb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ if [[ "$BUILD_DIR" = false ]]; then
# The --filter flag will allow the full .gitignore syntax to be used in .distignore
# The --delete flag will delete anything in destination that no longer exists in source
# rsync -rc --filter="dir-merge,- $GITHUB_WORKSPACE/.distignore" "$GITHUB_WORKSPACE/" trunk/ --delete --delete-excluded
sed 's/^/- /' "$GITHUB_WORKSPACE/.distignore" | sed 's/^- !/+ /' > tmp_rules && \
rsync -rc --filter="merge tmp_rules" "$GITHUB_WORKSPACE/" trunk/ --delete && \
rm tmp_rules
sed 's/^!/+ /' "$GITHUB_WORKSPACE/.distignore" | sed 's/^[^+]/- /' > tmp_rules && \
rsync -rcv --filter="merge tmp_rules" "$GITHUB_WORKSPACE/" trunk/ --delete --itemize-changes && \
rm tmp_rules
else
echo "ℹ︎ Using .gitattributes"

Expand Down

0 comments on commit 3509cb4

Please sign in to comment.