ci(deployment): Add automatic deployment scripts & config

Closes #13 (closed), #26 (closed)

This MR adds scripts & settings that are being used on the server to facilitate automatic deployment of the book.

The deployment works in the following manner:

  • whenever something is added to either main or publish branch, the build-book job in the pipeline is triggered. This job builds the book, and stores the built artifacts.
  • when the pipeline finishes running, a webhook is sent to the server (there are 2 webhooks, one for draft deployment and one for release deployment).
  • The webhook request is verified on the server (secret token, pipeline status, branch name, etc.). If all criteria are met, the deployment script is called.
  • The deployment script uses a project access token to fetch the latest artifact for the specific branch (either main or publish). The artifact ZIP file is extracted, and copied to the correct location on the server.
Edited by Rok Štular

Merge request reports

Loading