JabRef-Word-Addin icon indicating copy to clipboard operation
JabRef-Word-Addin copied to clipboard

Add github workflow to deploy to azure as static web app

Open tobiasdiez opened this issue 4 years ago • 4 comments

@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 avatar Oct 29 '21 11:10 tobiasdiez

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 avatar Oct 31 '21 14:10 tobiasdiez

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 avatar Nov 01 '21 19:11 tobiasdiez

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 avatar Apr 21 '23 15:04 tobiasdiez

Todo:

  • [ ] Fix sideloading
  • [ ] Create PR deployments
  • [x] Recreate azure static web app with location in EU

tobiasdiez avatar Apr 25 '23 14:04 tobiasdiez