-
-
Notifications
You must be signed in to change notification settings - Fork 120
Add a deploy script. #289
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
Add a deploy script. #289
Conversation
This looks good. It won't remove files, and will keep growing the deploy repo (on our other docs deploys we keep only one commit, i.e. force a single commit with just the latest content); but that is probably not a concern, at least for now. Deployment is automatic via Travis it looks like; in terms of guarding against accidental deploys, are you thinking of switching back to manual deploys? |
I thought about it and prefer to keep history, may help with debugging, easier to go back in case of issues, and we can always clean up if size becomes a problem at some point (not expected any time soon).
It's still manual, TravisCI doesn't run the |
👍 |
I'm already seeing the submodule thing is going to be annoying, I'll change it to something else. Let's not merge this. I'll keep rebasing for a little while for deploys we need until I get to a better solution for this. |
We could fairly easily update the NumPy docs uploader script to not overwrite the last commit. |
1a28fed
to
af1f3bc
Compare
92f167e
to
04b6eb8
Compare
This follows the Hugo deploy guide for GitHub Pages, https://gohugo.io/hosting-and-deployment/hosting-on-github/#step-by-step-instructions
I think the simplest option would be to
Advantages:
Disadvantages:
It is not clear to me how a manual process of
is safer: in any case after a while the steps become force-of-habit and will be executed with the same level of caution as pushing the merge button here. In both cases, a change can be reverted by backing out the action. |
Thanks for looking into this @mattip. I'm fine with keeping it in this repo, if so then it should be in the |
I cannot remember why we have a separate repo now rather than |
The documentation for |
The comment about rewriting history makes sense, even though this repo is only 20MB right now it could grow as time goes on. So I would be in favor of having a |
Why not |
Ahh, I see you are talking about this workflow. Should I do a PR to add that deploy script to the Makefile? |
That would be great, thanks Matti. |
Same repo is fine; here is an example of that: |
@stefanv that seems to be running on repo skyportal/skyportal and publishing to skyportal/docs I spent some time on the idea of having public be a worktree branch as in the recommended workflow above. It does these steps:
Are we comfortable with building the documentation once, verifying the build, then building it again (hopefully with the same build arguments) and deploying the second build? I think a workflow like this makes more sense, since we are working with a Makefile anyway
|
Thanks @mattip, those steps sound reasonable.
Assuming you mean the Netlify preview with the first build, yes. There are no build arguments, the whole command is simply |
Superceded by gh-353, so closing. |
This follows the Hugo deploy guide for GitHub Pages, https://gohugo.io/hosting-and-deployment/hosting-on-github/#step-by-step-instructions. It worked, page is live.
This may need some tweaks to deal with cleaning up, and documentation about init'ing the submodule.
I'm also wondering if we should guard a bit better about accidental deploys, e.g. restricting permissions on
numpy.github.com
to a subset of the whole web team.