Skip to content

Commit

Permalink
ci: allow branch_deploy to also deply latest tag to SVN repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Moore committed Apr 15, 2020
1 parent e8b2d8d commit 047a0d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ commands:
steps:
- run:
command: |
echo "export VERSION=$(grep 'Version:' /tmp/src/simple-social-icons.php | awk -F: '{print $2}' | sed 's/^\s//')" >> ${BASH_ENV}
echo "export VERSION=$(git -C /tmp/src describe --tags --abbrev=0)" >> ${BASH_ENV}
show_pwd_info:
description: "Show information about the current directory"
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
- attach_workspace:
at: /tmp
- install_dependencies
# - run: composer phpcs
# - run: composer phpcs

deploy_svn_branch:
executor: base
Expand All @@ -93,6 +93,7 @@ jobs:
- attach_workspace:
at: /tmp
- svn_setup
- svn_create_tag
- svn_add_changes
- svn_commit

Expand Down
1 change: 1 addition & 0 deletions .svnignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.gitattributes
.svnignore
node_modules
.circleci

0 comments on commit 047a0d4

Please sign in to comment.