Managing files using GitHub

The Marketplace allows automatically file “importing” from your GitHub repository directly in the file manager. This will make it easier for you as a developer to push updates to your plugins.

If you are reading these instructions then you must know until now how to login as a Developer and how to add a new Product for sale. The steps below will tell you how to use GitHub to automatically “send” new plugin versions to the marketplace Product.

 

Assuming at this point you have the Add new Product page opened and you can see the WPeconomy Release Manager window.

wpecon-release-manager-git

 

The steps below will have to be repeated for all of your existing or new repositories that you will use on the marketplace. Apply the Collabolator account and Webhooks first before listing the Product for sale.

Step 1: Add Collabolator Account

 

  1. Log into a repository under an account with administrative rights.
  2. In your repository’s right sidebar, click Settings.
  3. Click the “Collaborators” tab.
  4. Type our personal account as a collabolator: WPeCBot
  5. Select the user from the drop-down menu.
  6. Click Add

 

Step 2: Add Webhook

 

  1. Log into a repository under an account with administrative rights.
  2. In your repository’s right sidebar, click Settings.
  3. Click the “Webhooks and Services” tab.
  4. Click Add Webhook.
  5. Copy the “Post-Receive Hook URL” from your Product “Release Manager” box , and paste it in the Payload URL field.
  6. Click Add Webhook at the bottom to save the webhook.

 

 

At this point in your GitHub repository settings you should have the Collabolator and the Webhook added.

Back in your Products Release manage window you should still have an empty field for Repo URL which you will get from your Repository Overview page in the top right corner as in the image below. Make sure the format is set to SSH.

wpecon-release-git-url

 

 

Now the Release manager window should look like the one below:

 

wpecon-realease-sample-git

 

 

 

 

Step 3: Releasing the Product Files

 

Now that you have all the data added in GitHub and the Repository URL in the Release Manager, all you have to to is Publish/Update your Product and all of the “tags” that your repository has will be compiled into different version of your product. The output should be something like this:

18

 

Once the different plugin version have been compiled all you have to do is click the Release link next to the file version that you want to set as a “latest version”.

For example if your Bitbucket repository has 3 version tags ( 1.0, 1.1, 1.2-dev ) and you want to set 1.1 as the Latest version then hold the mouse next to that version Title and click the Release link.

 

 


 

Q: What if after i publish my Product for sale i tag a new release (1.3) ? How do i make that available ?

A: All you have to do is login to our website using your Developer acount info. Then just Edit the Product for which you just released the new version and in the Release Manager window you should have the new 1.3 version already compiled and all you have to do is click the Release link to set it as “latest”.