Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/scripts/deploy-assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,13 @@ PLUGIN_SVN_PATH="/tmp/svn"
svn co -q "http://svn.wp-plugins.org/$WP_ORG_PLUGIN_NAME" $PLUGIN_SVN_PATH

# Delete the wordpress.org assets directory
rm -rf $PLUGIN_SVN_PATH/.wordpress-org
rm -rf $PLUGIN_SVN_PATH/assets

# WordPress.org serves directory artwork from SVN /assets, not from our repo's dot-directory name.
cp -r ./.wordpress-org $PLUGIN_SVN_PATH/assets

# Copy our plugin assets as the new assets directory
cp -r ./.wordpress-org $PLUGIN_SVN_PATH/.wordpress-org
# Drop the mistargeted directory left behind by earlier deploys
rm -rf $PLUGIN_SVN_PATH/.wordpress-org

# Move into SVN directory
cd $PLUGIN_SVN_PATH
Expand All @@ -48,7 +51,7 @@ svn stat | grep '^?' | awk '{print $2}' | xargs -I x svn add x@
svn stat | grep '^!' | awk '{print $2}' | xargs -I x svn rm --force x@

# Debugging
ls -la $PLUGIN_SVN_PATH/.wordpress-org
ls -la $PLUGIN_SVN_PATH/assets

# Commit to SVN
svn ci --no-auth-cache --username $WP_ORG_USERNAME --password $WP_ORG_PASSWORD -m "Deploy wordpress.org assets"
Binary file modified .wordpress-org/banner-1544x500.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/banner-772x250.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/icon-128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/icon-256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed .wordpress-org/screenshot-1.png
Binary file not shown.
Loading