Skip to content

Publishing

Daniel Coelho edited this page Nov 22, 2019 · 6 revisions

Note: This section is only for Utrust team members or external collaborators with permissions.

Since we are not yet publishing our extension directly into Magento marketplace, the publishing process needs to be done manually. Therefore, to release a new version of the current code on the master branch, you'll need to follow these steps:

On this repo

  1. Checkout from master to a branch with the version name (e.g.: release-v0.1.3)
  2. Update the version on /etc/modules/Utrust_Payment.xml line 7.
  3. Update CHANGELOG.md with all the significant changes since the last version update
  4. Open Pull-request, ask for approval and merge to master (Don't delete the branch!)

On Magento

  1. Via FTP, upload all the files changed between master and our server.
  2. Test the payment flow.
  3. Go to the Magento admin dashboard.
  4. Navigate to "System" -> "Magento Connect" -> "Package Extensions".
  5. Login with the credentials used in step 1.
  6. Go to "Load Local Package" and click "Utrust_Payment" (if you don't see it, you might be missing the var/connect/Utrust_Payment.xml file).
  7. Change the Extension Package data:
    1. On "Release Info" change the "Release version" and add the changelog notes
    2. The "Contents" section should look like this:
TARGET                                    PATH                                              TYPE
Mag Local module file                     Utrust/Payment                                    Recursive Dir
Mag User Interface (layouts, templates)   frontend/base/default/template/utrust/payment     Recursive Dir
Mag Global Configuration                  modules/Utrust_Payment.xml                        File 
Mag User Interface (layouts, templates)   adminhtml/default/default/template/utrust/payment Recursive Dir
Mag Locale language File                  en_US/Utrust_Payment.csv                          File
Mag Locale language File                  pt_PT/Utrust_Payment.csv                          File

  1. Click "Save Data and Create Package" button above.
  2. The tgz package file should appear in var/connect with the name: Utrust_Payment-<version_number> and the corresponding xml should be there as well.
  3. Download it, you will need it later.

Back to this repo

  1. Go to "Releases" and create a new Release:
    1. The "tag version" and "release title" should be the release version (e.g. v0.1.2)
    2. The target branch is the one created in step
    3. Copy the version changes from the CHANGELOG.md
    4. Upload the new tgz to the attachments
    5. Click Publish release
  2. Optionally, send a message to the UTRUST Support team to communicate this new release to Merchants which use Magento.

Note: You might need to compile the extension in System -> Tools -> Compilation and click on Run Compilation Process button.

Clone this wiki locally