michelve / software-license-manager

🔐Wordpress Software License Management. Supports WooCommerce, and WP eStore.
https://epikly.com
GNU General Public License v3.0
77 stars 27 forks source link

Ant Build system and project restructure #97

Open Narimm opened 1 year ago

Narimm commented 1 year ago

replaces closed pull request #91 - includes all changes from that PR.

Refactor the base project into a src tree
Create ant build system that produces a distribution zip and json file for updates Migrate plugin-update-checker to git submodule Update plugin-update-checker to V5

Narimm commented 1 year ago

This is finally stable -

How it works:

On each push github actions will trigger a build using the ant build and publish the build files - these are beta versions

When a build is tagged - gh actions will trigger the release build - which will create a draft release for review and manual publishing.

The gh builds will not perform any commit or tagging themselves

The build file includes a release process which you run locally. Then push the resultant tags and branches. This triggers the above actions and drafts the release. To just do a local build Run

ant default

To trigger a release run

ant -Dversion.next=<next.version> -Drelease=true release

A release can also be dry run - which doesnt commit or tag


ant -Dversion.next=<next.version> -DdryRun=true -Drelease=true release