Merge pull request #49 from studiopress/try/deploy

CircleCI changes
This commit is contained in:
Ben Moore
2020-04-09 13:41:12 -05:00
committed by GitHub
+4 -3
View File
@@ -32,6 +32,7 @@ commands:
- run: echo "export SLUG=$(grep '@package' /tmp/src/plugin.php | awk -F ' ' '{print $3}' | sed 's/^\s//')" >> ${BASH_ENV} - run: echo "export SLUG=$(grep '@package' /tmp/src/plugin.php | awk -F ' ' '{print $3}' | sed 's/^\s//')" >> ${BASH_ENV}
- run: svn co https://plugins.svn.wordpress.org/${SLUG} --depth=empty . - run: svn co https://plugins.svn.wordpress.org/${SLUG} --depth=empty .
- run: svn up trunk - run: svn up trunk
- run: svn up tags --depth=empty
- run: find ./trunk -not -path "./trunk" -delete - run: find ./trunk -not -path "./trunk" -delete
- run: cp -r /tmp/src/. ./trunk - run: cp -r /tmp/src/. ./trunk
- run: svn propset svn:ignore -F ./trunk/.svnignore ./trunk - run: svn propset svn:ignore -F ./trunk/.svnignore ./trunk
@@ -39,14 +40,14 @@ commands:
svn_add_changes: svn_add_changes:
description: "Add changes to SVN" description: "Add changes to SVN"
steps: steps:
- run: svn st | grep ^! | awk '{print " --force "$2}' | xargs svn rm &>/dev/null - run:
command: if [[ ! -z $(svn st | grep ^\!) ]]; then svn st | grep ^! | awk '{print " --force "$2}' | xargs -0r svn rm; fi
- run: svn add --force . - run: svn add --force .
svn_create_tag: svn_create_tag:
description: "Create a SVN tag" description: "Create a SVN tag"
steps: steps:
- set_verision_variable - set_verision_variable
- run: svn up tags --depth=empty
- run: svn cp trunk tags/${VERSION} - run: svn cp trunk tags/${VERSION}
svn_commit: svn_commit:
@@ -102,8 +103,8 @@ jobs:
- attach_workspace: - attach_workspace:
at: /tmp at: /tmp
- svn_setup - svn_setup
- svn_add_changes
- svn_create_tag - svn_create_tag
- svn_add_changes
- svn_commit - svn_commit
workflows: workflows: