Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic deployment to www.sagemath.org #413

Open
mkoeppe opened this issue Oct 22, 2022 · 1 comment
Open

Automatic deployment to www.sagemath.org #413

mkoeppe opened this issue Oct 22, 2022 · 1 comment

Comments

@mkoeppe
Copy link

mkoeppe commented Oct 22, 2022

@haraldschilly
We have the automatic build in place in https://github.com/sagemath/website/blob/master/.github/workflows/build.yml
What's missing for automatic deployment from the master branch to www.sagemath.org?

@haraldschilly
Copy link
Member

From my point of view, that automatic build is not a sufficiently complete build of the website. If you want to know what I do:

Checking/Testing

run make, and see if it breaks → fix the detail that's off. that's currently a check with these PRs.

new release

  1. run make: this step needs the secret api key for the google maps api to look up the coordinates for the pins on the dev map. If a location does not resolve (currently just a warning, but this should be an error), fix the location (be more specific, like, appending the country).
  2. The step above caches the coordinates in conf/geocode.xml. I.e. that files must be committed as well. e.g. 92fefd7 … surely, this could be part of a script doing a release as well.
  3. Final step is running make publish, which calls publish.sh

periodic updates

Additionally, every hour a publishing step runs, which checks up on the sage mirrors. If they're outdated (by checking the timestamp in the zzz/timestamp file or so) or do not respond, they're not included.

So, this means there is also a periodic task running the publish operation every hour. As an example, a very recent commit is this one sagemath/sagemath.github.io@e29e127 where one mirror was removed. This also changes the mirror_list file, used by Sage.

I hope this helps getting an overview. Right now everything happens in a CoCalc project, where several people have access to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants