Skip to content

Conversation

jonathansick
Copy link
Contributor

This PR adds a new GitHub Actions workflow that deploys the built Gatsby site to GitHub Pages.

One thing that I'm currently figuring out is how to include the tutorials with the site. There are two options:

  1. Have the tutorials repo deploy into a subdirectory of this repo's gh-pages.
  2. Have the tutorials build create an artifact that's made available to the learn-astropy repo. Via a repository_dispatch webhook trigger, the tutorials repo can trigger a deployment of learn-astropy that includes the built tutorials content.

The first option might be easier but has the downside that the deployments to github pages can't delete "old" files so that e.g. a tutorials build doesn't clobber the learn-astropy homepage build. In that sense, the second option is technically more correct.

This uses the https://github.com/peaceiris/actions-gh-pages GitHub
Action for the deployment to GitHub Pages for any merge to `main`. The
one thing this workflow is missing is how to incorporate tutorials
content in the same GitHub Pages build.
@jonathansick jonathansick requested a review from adrn September 27, 2021 16:01
@jonathansick
Copy link
Contributor Author

@adrn This doesn't have the integrated deployment of tutorials, but I'll add that in a second PR after we've got astropy-learn/astropy-tutorials#497 settled.

@adrn adrn merged commit ca5e78f into astropy-learn:main Sep 28, 2021
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

Successfully merging this pull request may close these issues.

2 participants