Skip to content

Commit

Permalink
Merge pull request #8 from PagaMasTarde/INT-417
Browse files Browse the repository at this point in the history
SVN Instructions
  • Loading branch information
pgarcess authored Dec 10, 2018
2 parents cc4c186 + 6afdb38 commit 214bd5d
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
/vendor
paylater*.zip
composer.phar
/svn
!/svn/README.md
43 changes: 43 additions & 0 deletions svn/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# SVN Instructions

This file explains how to upload a new module version to Woocommerce market.

## Upload

1- Clone Paga+Tarde svn repository:
```
svn checkout http://plugins.svn.wordpress.org/pagamastarde svn/
```

2- Move the current code to the current tag version
```
mkdir svn/tags/<current_version>
cp -pr svn/trunk/ svn/tags/<current_version>
```

3- Remove old content inside trunk folder
```
rm -rf svn/trunk/*
```

4- Copy new files to trunk, overwriting the old one.
```
cp -pr assets/ svn/trunk/assets/
cp -pr controllers/ svn/trunk/controllers/
cp -pr includes/ svn/trunk/includes/
cp -pr languages/ svn/trunk/languages/
cp -pr templates/ svn/trunk/templates/
cp -pr vendor/ svn/trunk/vendor/
cp readme.txt svn/trunk/readme.txt
cp WC_Paylater.php svn/trunk/WC_paylater.php
```

4- Add the files to svn track
```
svn add -f svn/.
```

5- Commit the files to svn
```
svn commit -m "<new_version>"
```

0 comments on commit 214bd5d

Please sign in to comment.