Skip to content

Release Procedure

thekingofcity edited this page Sep 9, 2021 · 12 revisions

Release Procedure

Build and Release on UAT and PRD

  1. push something to the master
  2. build the project by manually triggering the build 2 job in the Github actions
  3. find the latest version at https://github.com/wongchito/uat-rail-map-generator, or in the action log
  4. preview the project by manually triggering the release job(version: the latest version in step 3, Environment: UAT)
  5. view the uat at https://wongchito.github.io/uat-rail-map-generator
  6. release the project by manually triggering the release job(version: the latest version in step 3, Environment: PRD)
  7. view the released version at https://wongchito.github.io/RailMapGenerator

Build Electron test package on Windows

  1. Set environment variable $Env:PUBLIC_URL="./".
  2. Build the latest via npm run build.
  3. Build Electron package .\\node_modules\\.bin\\electron-builder -c.extraMetadata.main=build/electron.js.

Release Electron package in Github

  1. (Optional, done by the release CI job) Commit something and tag it with rmg- like git commit -m "sth" && git tag rmg-3.9.20 && git push && git push --tags.
  2. Wait for the Build Electron job to complete.
  3. Check the Release page https://github.com/wongchito/RailMapGenerator/releases where the github-actions has drafted a version with all the packages for you.
Clone this wiki locally