Ensure you have bumped the version inside of readme.txt, salesfire.php and tracking.php (load_scripts func), and added an entry to Changelog within the readme.txt.

# Install SVN using 
```
brew install subversion
```

# Cloning SVN

You need to clone svn, e.g. into a svn/ directory.

```
svn checkout --depth immediates https://plugins.svn.wordpress.org/salesfire svn
```

(You will need to login with username/password for WordPress login.)

You can create another folder called working-env with a installation of WordPress. Inside the plugins you can clone the `salesfire` plugin from GitHub.

# Change branch 
```
svn checkout --depth immediates https://plugins.svn.wordpress.org/salesfire svn
```

# Go to svn folder in terminal

Find the svg folder on your computer and cd into it using terminal

# Pull down changes
```
svn update --set-depth=infinity
```

# Set up branches
```
svn up assets branches trunk
```

# Updating SVN

You will need to copy the working plugin into the trunk/ within /svn, e.g.
The path below should match going from the svn folder on your computer to the wordpress installation you have set up with the plugin.

```
rsync -rc --exclude-from="../working-env/wp-content/plugins/salesfire/.distignore" "../working-env/wp-content/plugins/salesfire/" trunk/ --delete --delete-excluded
```

(You will also need to copy across .wordpress-org folder if necessary.)


# Check changes have been made 
```
svn status
```

Run following:

```
svn add . --force
```

You can check what has been modified with:

svn status | grep '^\!' | sed 's/! *//' | xargs -I% svn rm %@

You then need to copy the trunk to the new version:
(Where 1.0.1 is below it should be the version you have bumped in the plugin)
```
svn cp "trunk" "tags/1.0.1"
```

And then submit:

```
svn ci -m "Updated XYZ"
```

When running the above command you will be asked for the username and password for wordpress.org which can be found in 1password.

You will then see the updated version here: https://wordpress.org/plugins/salesfire/.

(It may take several minutes to reflect bump.)
