Skip to content

Commit 07ca15b

Browse files
authored
Merge pull request #25 from daanrijpkemacb/update-bluem-php
Update Bluem-PHP to 2.3.7 and update readme
2 parents b2cdac6 + d2adccb commit 07ca15b

File tree

4 files changed

+43
-16
lines changed

4 files changed

+43
-16
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ update-trunk:
143143

144144
commit-to-svn:
145145
@echo "$(BLUE)Committing tag to SVN...$(NC)"
146-
svn add $(SVN_DIR)/tags/$(NEW_TAG)
146+
svn add $(SVN_DIR)/tags/$(NEW_TAG) --force
147147
cd $(SVN_DIR); svn commit -m "Added tags/$(NEW_TAG)"
148148
@echo "$(BLUE)Committing trunk to SVN...$(NC)"
149149
svn delete $(SVN_DIR)/trunk

README.md

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ If you want to use this repository, follow the following steps to compile
5151
2. Install [Composer](https://getcomposer.org) on your local machine
5252
3. Run the `composer update` command in the downloaded folder. This will generate a `vendor` folder and install all required dependencies and libraries.
5353
4. Ensure the folder and its contents are located at the `./wp-content/plugins/bluem-woocommerce` path. (You could also compress the contents of this folder into a ZIP file and upload this into your site).
54-
5. Your plug-in should now be visible within your WordPress plugin list. Activate the plug-in from this page
54+
5. Your plug-in should now be visible within your WordPress plug-in list. Activate the plug-in from this page
5555

5656
If possible, please run the installation procedure on a testing environment first, before installing the plug-in in a development environment.
5757

@@ -262,12 +262,39 @@ If you have any questions, please email [pluginsupport@bluem.nl](mailto:pluginsu
262262

263263
# Releasse plan
264264
To actually release a new version, follow these steps:
265-
266-
1. Update the WordPress plugin version in the `bluem.php` file
267-
2. Update the `readme.txt` file with the new version number and changelog
268-
3. Commit the changes with a message like "Release version X.X.X"
269-
4. Push those changes to the `master` branch
270-
5. Run the command below to prepare the deployment files into the build directory and clean out any non-production files
265+
> Ensure you have SVN & Composer installed globally on your local machine.
266+
267+
> To get started with the SVN, set up a folder with all existing files, checkout the SVN folder using the command below:
268+
> ```bash
269+
> make get-fresh-svn
270+
> ```
271+
272+
1. Determine the new version of the plug-in, using [semantic versioning](https://semver.org/).
273+
2. Update the WordPress plug-in version in the `bluem.php` file
274+
3. Update the `readme.txt` file with the new version number and changelog
275+
4. Update the changelog in the `readme.txt` file with the new version number and a summary of changes. These changes will also show up in the WordPress plug-in directory.
276+
5. Commit the changes with a message like "Release version X.X.X" where the X's are your new version tag.
277+
6. Push those changes to the `master` branch through a PR with review procedure.
278+
7. Run the command below to prepare the deployment files into the build directory and clean out any non-production files
271279
```bash
272280
make pre-deployment
273281
```
282+
8. Copy these changes into the SVN directory in two places: the tags folder with your new tag and the trunk folder (which always contains the latest version). Use these commands to help you:
283+
1. Copying the files to the tags folder:
284+
```bash
285+
make add-tag NEW_TAG=1.3.27
286+
```
287+
2. Copying the files to the trunk folder:
288+
```bash
289+
make update-trunk NEW_TAG=1.3.27
290+
```
291+
3. Commit the changes to the SVN repository:
292+
```bash
293+
make commit-to-svn NEW_TAG=1.3.27
294+
```
295+
This command will commit the changes to the SVN repository, including the new tag and trunk updates.
296+
> Note: this command will also automatically update the `readme.txt` file in the SVN repository with the new version number and changelog.
297+
> It can take a little while before files are all committed.
298+
9. After the commit is successful, you can check the SVN repository to ensure that the new tag and trunk updates are present.
299+
10. The plug-in is now available in the WordPress plug-in directory and can be installed by users.
300+
11. Enjoy your new release!

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"require": {
1919
"php": ">=8.0",
20-
"bluem-development/bluem-php": "2.3.5",
20+
"bluem-development/bluem-php": "2.3.7",
2121
"ext-json": "*"
2222
},
2323
"minimum-stability": "dev",

composer.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)