JabRef / JabRef-Word-Addin

MIT License
23 stars 7 forks source link

Add github workflow to deploy to azure as static web app #215

Open tobiasdiez opened 2 years ago

tobiasdiez commented 2 years ago

@mohit038 could you please add a workflow (as a PR, maybe using https://github.com/JabRef/JabRefOnline/blob/main/.github/workflows/deploy.yml as a basis and incorporating https://github.com/JabRef/JabRefOnline/issues/577). Then I will handle the necessary config in azure and add the secrets to github.

tobiasdiez commented 2 years ago

I've configured everything on azures end, and added the deployment secret to github. The website is "live" at https://lively-ground-0d7c50410.azurestaticapps.net/

An example workflow can be found at https://docs.microsoft.com/en-us/azure/static-web-apps/build-configuration?tabs=github-actions#build-configuration

tobiasdiez commented 2 years ago

PRs and main are published to azure, but both cannot be sideloaded at the moment. Some comments how this may be done: https://github.com/JabRef/JabRef-Word-Addin/pull/216#pullrequestreview-794551189

tobiasdiez commented 1 year ago

It should also create a new static web app for each PR (since staging slots are limited to 3). Similar to https://github.com/JabRef/JabRefOnline/blob/dfa3c0d8f162ab045c21f115866adaa8aa4fff49/.github/workflows/deploy.yml#L42-L56

tobiasdiez commented 1 year ago

Todo: