mirror of
https://github.com/10h30/genesis-simple-sidebars.git
synced 2026-07-11 18:46:05 +09:00
Merge pull request #43 from studiopress/BMO/GF-1933-git-to-s3
GF-1933 Git to SVN
This commit is contained in:
+13
-9
@@ -18,7 +18,7 @@ commands:
|
|||||||
- run:
|
- run:
|
||||||
command: |
|
command: |
|
||||||
cd /tmp/artifacts
|
cd /tmp/artifacts
|
||||||
SLUG=grep 'Text Domain:' /tmp/src/plugin.php | awk -F: '{print $2}' | sed 's/^\s//'
|
SLUG=$(grep '@package' /tmp/src/plugin.php | awk -F ' ' '{print $3}' | sed 's/^\s//')
|
||||||
svn co https://plugins.svn.wordpress.org/$SLUG --depth=empty .
|
svn co https://plugins.svn.wordpress.org/$SLUG --depth=empty .
|
||||||
svn up trunk
|
svn up trunk
|
||||||
svn up tags --depth=empty
|
svn up tags --depth=empty
|
||||||
@@ -40,7 +40,7 @@ commands:
|
|||||||
- deploy:
|
- deploy:
|
||||||
command: |
|
command: |
|
||||||
cd /tmp/artifacts
|
cd /tmp/artifacts
|
||||||
VERSION=grep 'Version:' /tmp/src/plugin.php | awk -F: '{print $2}' | sed 's/^\s//'
|
VERSION=$(grep 'Version:' /tmp/src/plugin.php | awk -F: '{print $2}' | sed 's/^\s//')
|
||||||
svn cp trunk tags/$VERSION
|
svn cp trunk tags/$VERSION
|
||||||
svn_commit:
|
svn_commit:
|
||||||
description: "Commit changes to SVN"
|
description: "Commit changes to SVN"
|
||||||
@@ -48,7 +48,7 @@ commands:
|
|||||||
- deploy:
|
- deploy:
|
||||||
command: |
|
command: |
|
||||||
cd /tmp/artifacts
|
cd /tmp/artifacts
|
||||||
VERSION=grep 'Version:' /tmp/src/plugin.php | awk -F: '{print $2}' | sed 's/^\s//'
|
VERSION=$(grep 'Version:' /tmp/src/plugin.php | awk -F: '{print $2}' | sed 's/^\s//')
|
||||||
svn ci -m "Tagging $VERSION from Github" --no-auth-cache --non-interactive --username "$SVN_USERNAME" --password "$SVN_PASSWORD"
|
svn ci -m "Tagging $VERSION from Github" --no-auth-cache --non-interactive --username "$SVN_USERNAME" --password "$SVN_PASSWORD"
|
||||||
|
|
||||||
executors:
|
executors:
|
||||||
@@ -107,10 +107,16 @@ workflows:
|
|||||||
version: 2
|
version: 2
|
||||||
checks:
|
checks:
|
||||||
jobs:
|
jobs:
|
||||||
- checkout
|
- checkout:
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
ignore: master
|
||||||
- checks:
|
- checks:
|
||||||
requires:
|
requires:
|
||||||
- checkout
|
- checkout
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
ignore: master
|
||||||
|
|
||||||
branch_deploy:
|
branch_deploy:
|
||||||
jobs:
|
jobs:
|
||||||
@@ -127,7 +133,6 @@ workflows:
|
|||||||
- deploy_svn_branch:
|
- deploy_svn_branch:
|
||||||
context: genesis-svn
|
context: genesis-svn
|
||||||
requires:
|
requires:
|
||||||
- checkout
|
|
||||||
- checks
|
- checks
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
@@ -140,7 +145,7 @@ workflows:
|
|||||||
tags:
|
tags:
|
||||||
only: /^\d+\.\d+\.\d+$/
|
only: /^\d+\.\d+\.\d+$/
|
||||||
branches:
|
branches:
|
||||||
only: master
|
ignore: /.*/
|
||||||
- checks:
|
- checks:
|
||||||
requires:
|
requires:
|
||||||
- checkout
|
- checkout
|
||||||
@@ -148,14 +153,13 @@ workflows:
|
|||||||
tags:
|
tags:
|
||||||
only: /^\d+\.\d+\.\d+$/
|
only: /^\d+\.\d+\.\d+$/
|
||||||
branches:
|
branches:
|
||||||
only: master
|
ignore: /.*/
|
||||||
- deploy_svn_tag:
|
- deploy_svn_tag:
|
||||||
context: genesis-svn
|
context: genesis-svn
|
||||||
requires:
|
requires:
|
||||||
- checkout
|
|
||||||
- checks
|
- checks
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
only: /^\d+\.\d+\.\d+$/
|
only: /^\d+\.\d+\.\d+$/
|
||||||
branches:
|
branches:
|
||||||
only: master
|
ignore: /.*/
|
||||||
|
|||||||
Reference in New Issue
Block a user