-
Notifications
You must be signed in to change notification settings - Fork 74
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
Push docs to GitHub Pages using Actions #198
Conversation
Download the built docs from the |
TODO:
|
@dopplershift @hugovk this should do it for deploying to Github Pages producing the same output as we had before with Travis. @dopplershift I copied most of that script from MetPy so this might be useful if you haven't migrated this part already. I couldn't use the artefacts from the testing workflow because Actions doesn't support it. Instead of deploying from the test workflow I'm building the docs again here and then pushing them. It's not ideal but it's what works for now. I was trying to use https://github.com/peaceiris/actions-gh-pages but I couldn't make it reset the I tested by deploying to this branch: https://github.com/fatiando/pooch/commits/gh-pages-test I made a few |
I saw this and marked it as something I want to come and "learn from". Bummer that you couldn't get one of the actions to work. I might have to ponder a PR/issue to one that makes sense because I'd love not to handle that machinery (not that ours has changed in years). What you've got here seems reasonable to me. |
I’m considering this as well. I haven’t the slightest clue how these things work though. But what would be required is the ability to run a given bash script/command inside the checked out repository. It feels like setting the latest link is a bit too niche? At least having the code here can serve as a guide for what we need from the Action. But as you said, this code hasn’t changed in years. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Remove travis configuration. Don't build on this branch. Uncomment PyPI deploy. Fix pushing to gh-pages branch.
Replaces our custom TravisCI script with GitHub Actions for pushing the built documentation to the
gh-pages
branch.Reminders:
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
and the base__init__.py
file for the package.AUTHORS.md
file (if you haven't already) in case you'd like to be listed as an author on the Zenodo archive of the next release.