NIH-NCPI / ncpi-fhir-ig

🔥 NCPI FHIR Implementation Guide
https://nih-ncpi.github.io/ncpi-fhir-ig/
Creative Commons Zero v1.0 Universal
5 stars 2 forks source link

🚀 Preview IG site on pull request updates #47

Closed znatty22 closed 2 years ago

znatty22 commented 2 years ago

Motivation

Developers can currently build the IG locally and preview it in their browser. However, it would be nice to view published site at a publicly accessible URL so that anyone reviewing the PR may review the IG and make comments on the PR.

Approach

Each time the PR is updated (new commit pushed), deploy the IG to a URL unique to the pull request. This PR adds a couple of steps to the github workflow which 1) deploy the site to netlify and 2) add a comment on the PR with the deploy preview url.