Skip to content

Commit

Permalink
build: check branch in deploy-svn task
Browse files Browse the repository at this point in the history
  • Loading branch information
frugan-dev committed Aug 13, 2024
1 parent be84a71 commit 0ad5852
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,14 @@ deploy-svn:
exit 1; \
fi
@svn $(SVN_AUTH) checkout https://plugins.svn.wordpress.org/$(PLUGIN_NAME)/ $(TMP_DIR)/$(SVN_DIR)
@rsync -av --delete $(DIST_DIR)/$(PLUGIN_NAME)/ $(TMP_DIR)/$(SVN_DIR)/trunk/
@rsync -av --delete $(SVN_ASSETS_DIR)/ $(TMP_DIR)/$(SVN_DIR)/assets/
@CURRENT_BRANCH=$$(git rev-parse --abbrev-ref HEAD); \
if [[ "$$CURRENT_BRANCH" != support/* ]]; then \
echo "Deploying to trunk and assets"; \
rsync -av --delete $(DIST_DIR)/$(PLUGIN_NAME)/ $(TMP_DIR)/$(SVN_DIR)/trunk/; \
rsync -av --delete $(SVN_ASSETS_DIR)/ $(TMP_DIR)/$(SVN_DIR)/assets/; \
fi
@if [ ! -d "$(TMP_DIR)/$(SVN_DIR)/tags/$(PLUGIN_VERSION)" ]; then \
echo "Deploying to tags"; \
mkdir -p $(TMP_DIR)/$(SVN_DIR)/tags/$(PLUGIN_VERSION); \
rsync -av --delete $(DIST_DIR)/$(PLUGIN_NAME)/ $(TMP_DIR)/$(SVN_DIR)/tags/$(PLUGIN_VERSION)/; \
fi
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
![](.wordpress-org/banner-1544x500.jpg)

![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/frugan-dev/acf-uppy/total)
![GitHub Actions Workflow Status](https://github.com/frugan-dev/acf-uppy/actions/workflows/ci.yml/badge.svg)
![GitHub Actions Workflow Status](https://github.com/frugan-dev/acf-uppy/actions/workflows/cd.yml/badge.svg)
![GitHub Actions Workflow Status](https://github.com/frugan-dev/acf-uppy/actions/workflows/main.yml/badge.svg)
![GitHub Issues](https://img.shields.io/github/issues/frugan-dev/acf-uppy)
![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen)
![GitHub Release](https://img.shields.io/github/v/release/frugan-dev/acf-uppy)
Expand Down

0 comments on commit 0ad5852

Please sign in to comment.