GMOD / Apollo3

JBrowse 2 plugin for editing annotations on an Apollo server
Apache License 2.0
6 stars 4 forks source link

Deploy to demo server on version tag #377

Open garrettjstevens opened 3 months ago

garrettjstevens commented 3 months ago

Now that the auto-deployment to the staging server is working, we need to set up auto-deployment to the regular demo server.

In the push.yml workflow, a couple of the jobs use the "staging" environment. We'll need to create a new GitHub environment called "production" that has the environment variables set to the production server values. Then we can use the same code that we use to deploy to staging for deploying to production.

To trigger deploying to the demo server, we can use this condition a new GitHub workflow file:

on:
  push:
    tags:
      - 'v*'

Possibly can use a shared workflow for the deployment code, with "staging" or "production" as input. https://docs.github.com/en/actions/using-workflows/reusing-workflows