Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
twoelevenjay committed Oct 20, 2024
1 parent b327618 commit 4a33149
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 8 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,48 @@ name: Deploy to WordPress SVN
on:
push:
tags:
- 'v*.*.*'
- 'v*.*.*' # Trigger deployment only when a new version tag is pushed.

jobs:
deploy:
runs-on: ubuntu-latest

steps:
# Step 1: Checkout the repository
- name: Checkout Repository
uses: actions/checkout@v2

# Step 2: Install Subversion
- name: Install Subversion
run: sudo apt-get install subversion

- name: Deploy to WordPress SVN
# Step 3: Deploy to /trunk/ in WordPress SVN
- name: Deploy to WordPress SVN /trunk/
env:
SVN_USERNAME: ${{ secrets.WORDPRESS_USERNAME }}
SVN_PASSWORD: ${{ secrets.WORDPRESS_PASSWORD }}
run: |
# Checkout the WordPress.org plugin repository
svn co https://plugins.svn.wordpress.org/cmb2-admin-extension/ svn-dir
# Synchronize files from GitHub repository to the SVN /trunk/ directory
rsync -av --delete --exclude=".git" ./ svn-dir/trunk/
# Navigate to the SVN directory and add all changes
cd svn-dir
svn add --force trunk/*
# Commit changes to /trunk/
svn commit -m "Deploying version ${{ github.ref }}" --username $SVN_USERNAME --password $SVN_PASSWORD --non-interactive
# Step 4: Create a tag in WordPress SVN /tags/
- name: Create SVN Tag
env:
SVN_USERNAME: ${{ secrets.WORDPRESS_USERNAME }}
SVN_PASSWORD: ${{ secrets.WORDPRESS_PASSWORD }}
run: |
# Extract version number from GitHub tag
VERSION=${GITHUB_REF/refs\/tags\/v/}
# Create a new tag in the WordPress SVN repository by copying /trunk/ to /tags/version_number/
svn cp https://plugins.svn.wordpress.org/cmb2-admin-extension/trunk https://plugins.svn.wordpress.org/cmb2-admin-extension/tags/$VERSION -m "Tagging version $VERSION" --username $SVN_USERNAME --password $SVN_PASSWORD --non-interactive
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,19 @@

## Changelog

### 1.0.3 beta 10.19.2024
### 1.0.4 10.19.2024
* Add tag generation to workflow.

### 1.0.3 10.19.2024
* Add short description to the readme file.

### 1.0.2 10.19.2024
* Test version bump

### 1.0.1 10.19.2024
* Github workflow updates.

### 1.0.0 10.19.2024
* Major version release with stability improvements and compatibility update for WordPress 6.0.
* Improved user interface for managing meta boxes from the WordPress admin.

Expand Down
2 changes: 1 addition & 1 deletion cmb2-admin-extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Author: twoelevenjay
* Author URI: http://211j.com
* Contributors:
* Version: 1.0.3
* Version: 1.0.4
* Text Domain: cmb2-admin-extension
* Domain Path: /languages
*
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
**Contributors:** twoelevenjay
**Donate link:** https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=leon%40211j%2ecom&lc=MQ&item_name=Two%20Eleven%20Jay&no_note=0&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest
**Tags:** metaboxes, forms, fields, options, settings
**Requires at least:** 4.9
**Tested up to:** 6.6
**Requires at least:** 4.5
**Tested up to:** 6.6.2
**Stable tag:** 1.0.3
**License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html
Expand Down
16 changes: 14 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: metaboxes, forms, fields, options, settings
Requires at least: 4.5
Tested up to: 6.6.2
Requires PHP: 8.1
Stable tag: 1.0.3
Stable tag: 1.0.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -36,7 +36,19 @@ Yes, CMB2 is required for this extension to work.
Documentation will be available in the [GitHub wiki](https://github.com/twoelevenjay/CMB2-Admin-Extension/wiki).

== Changelog ==
= 1.0.4 =
* Add tag generation to workflow.

= 1.0.3 =
* Add short description to the readme file.

= 1.0.2 =
* Test version bump

= 1.0.1 =
* Github workflow updates.

= 1.0.0 =
* Major version release with stability improvements and compatibility update for WordPress 6.0.
* Improved user interface for managing meta boxes from the WordPress admin.

Expand All @@ -50,7 +62,7 @@ Documentation will be available in the [GitHub wiki](https://github.com/twoeleve
* Initial release.

== Upgrade Notice ==
= 1.0.3 =
= 1.0.4 =
This major version introduces stability improvements and compatibility with the latest WordPress version.

== Translation ==
Expand Down

0 comments on commit 4a33149

Please sign in to comment.