-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve(build): improve/cleanup the build process
chore: updated all dev dependencies fix: fixed an issue with releases not being created properly on GitHub
- Loading branch information
Showing
11 changed files
with
613 additions
and
1,270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
set -eo | ||
|
||
TMP_DIR="$GITHUB_WORKSPACE/courier-notices" | ||
mkdir "$TMP_DIR" | ||
|
||
# If there's no .gitattributes file, write a default one into place | ||
if [ ! -e "$GITHUB_WORKSPACE/.distignore" ]; then | ||
echo "ℹ︎ Creating .distignore file" | ||
|
||
cat > ".distignore" <<-EOL | ||
/.gitattributes | ||
/.gitignore | ||
/.github | ||
/README.md | ||
/.editorconfig | ||
/composer.json | ||
/index.php | ||
EOL | ||
fi; | ||
|
||
echo "➤ Copying files to $TMP_DIR" | ||
|
||
# This will exclude everything in the .gitattributes file with the export-ignore flag | ||
rsync -rc --exclude-from="$GITHUB_WORKSPACE/.distignore" "$GITHUB_WORKSPACE/" "$TMP_DIR/" --delete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.