Skip to content

Commit

Permalink
Prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk committed Jun 5, 2024
1 parent 3bb8f69 commit 8dc6256
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
28 changes: 15 additions & 13 deletions bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,6 @@ fi
echo -ne "\033[32m✔\033[0m "
echo "svn up to date"

git diff-files --quiet
if [ $? -eq 1 ]; then
echo -ne "\033[31m✘\033[0m "
echo "Unstaged changes in git"
echo
echo ❯ git status
git status
return
fi
echo -ne "\033[32m✔\033[0m "
echo "No unstaged changes in git"

git tag | egrep -q ^$ENABLE_MASTODON_APPS_VERSION\$
if [ $? -eq 0 ]; then
echo -ne "\033[31m✘\033[0m "
Expand Down Expand Up @@ -109,6 +97,18 @@ echo -ne "\033[32m✔\033[0m "
echo "No unknown files in svn"
echo

git diff-files --quiet
if [ $? -eq 1 ]; then
echo -ne "\033[31m✘\033[0m "
echo "Unstaged changes in git"
echo
echo ❯ git status
git status
return
fi
echo -ne "\033[32m✔\033[0m "
echo "No unstaged changes in git"

echo -ne "\033[32m✔\033[0m "
echo "All looks good, ready to tag and commit!"
echo -n ❯ git push
Expand All @@ -123,4 +123,6 @@ git push origin $ENABLE_MASTODON_APPS_VERSION
echo -n '❯ svn ci -m "enable-mastodon-apps '$ENABLE_MASTODON_APPS_VERSION'" && svn cp https://plugins.svn.wordpress.org/enable-mastodon-apps/trunk https://plugins.svn.wordpress.org/enable-mastodon-apps/tags/'$ENABLE_MASTODON_APPS_VERSION' -m "Release '$ENABLE_MASTODON_APPS_VERSION'"'
read
svn ci -m "enable-mastodon-apps $ENABLE_MASTODON_APPS_VERSION" && svn cp https://plugins.svn.wordpress.org/enable-mastodon-apps/trunk https://plugins.svn.wordpress.org/enable-mastodon-apps/tags/$ENABLE_MASTODON_APPS_VERSION -m "Release $ENABLE_MASTODON_APPS_VERSION"
echo Now create a new release on GitHub: https://github.com/akirk/enable-mastodon-apps/releases/new\?tag=$ENABLE_MASTODON_APPS_VERSION
echo -n '❯ gh release create $ENABLE_MASTODON_APPS_VERSION --generate-notes'
read
gh release create $ENABLE_MASTODON_APPS_VERSION --generate-notes
2 changes: 1 addition & 1 deletion enable-mastodon-apps.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin name: Enable Mastodon Apps
* Plugin author: Alex Kirk
* Plugin URI: https://github.com/akirk/enable-mastodon-apps
* Version: 0.6.6
* Version: 0.9.0
*
* Description: Allow accessing your WordPress with Mastodon clients. Just enter your own blog URL as your instance.
*
Expand Down

0 comments on commit 8dc6256

Please sign in to comment.