Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
claytoncollie committed Sep 16, 2024
1 parent a646a35 commit 739c062
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,11 @@ if [[ "$BUILD_DIR" = false ]]; then
echo "➤ Copying files..."
if [[ -e "$GITHUB_WORKSPACE/.distignore" ]]; then
echo "ℹ︎ Using .distignore"
rsync --version
# Copy from current branch to /trunk, excluding dotorg assets
# 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
# The --itemize-changes flag will show the changes made to each file
rsync -rcv --filter="merge,- $GITHUB_WORKSPACE/.distignore" "$GITHUB_WORKSPACE/" trunk/ --delete --itemize-changes
# 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 739c062

Please sign in to comment.