JabRef-Word-Addin
JabRef-Word-Addin copied to clipboard
Add github workflow to deploy to azure as static web app
@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.
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
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
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
Todo:
- [ ] Fix sideloading
- [ ] Create PR deployments
- [x] Recreate azure static web app with location in EU