Skip to content

Build & Release

Willington Vega edited this page Dec 9, 2020 · 33 revisions

Before deploy

  1. Ensure the readme.txt and changelog.txt files have changelog entries for the changes included in the new version
  2. Ensure the changelog date and version uses the following format: {year}.nn.nn {version}-dev.{number}. Sake expects to see and will replace 2020.nn.nn with the current version and {version}-dev.{number} with the version selected during deploy.
  3. Ensure that the value for the Stable tag header in readme.txt is {version}-dev.{number}
  4. Ensure that the value for the WC_Facebookcommerce::VERSION constant is {version}-dev.{number}
  5. Ensure that the value for the Version header in facebook-for-woocommerce.php is {version}-dev.{number}
  6. Ensure you have no untracked files or uncommitted changes on your working directory

Deploy

  1. Use npx sake deploy --deployAssets=0 to skip the shell:svn_commit_assets action not used on this repo

TODO: update command to pass SVN user

After deploy

If you deploy from a branch, before merging the changes into master, follow these steps to fix the tag that Sake creates:

  1. git fetch to get the latest tags
  2. git tag -d {version} to delete the tag that sake created
  3. git tag {version} {hash of Facebook for WooCommerce versioning commit}
  4. git push --tags -f to overwrite the tag on GitHub with the modified tag

Clone this wiki locally