diff --git a/.travis.yml b/.travis.yml index c9d7fdc06..2c9463643 100644 --- a/.travis.yml +++ b/.travis.yml @@ -57,9 +57,7 @@ script: deploy: - provider: script - script: - - for i in $(find vendor/ -type l); do \cp -f --remove-destination $(realpath $i) $i;done - - chmod +x ./bin/release.sh && ./bin/release.sh + script: chmod +x ./bin/release.sh && ./bin/release.sh skip_cleanup: true on: tags: true diff --git a/bin/release.sh b/bin/release.sh index 4252a8484..3022525d5 100644 --- a/bin/release.sh +++ b/bin/release.sh @@ -11,6 +11,9 @@ find vendor/ -name '.git' -type d -print -exec rm -rf {} + rm -fv package.* phpcs.xml rm -rfv qa +# Find and replace symlinks in the "vendor" directory. +for i in $(find vendor/ -type l); do \cp -f --remove-destination $(realpath $i) $i;done + # Create a tag in the Wordpress.org SVN repo when after your build succeeds via Travis. # @link https://github.com/BoldGrid/wordpress-tag-sync chmod +x ./node_modules/@boldgrid/wordpress-tag-sync/release.sh && ./node_modules/@boldgrid/wordpress-tag-sync/release.sh