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

Consider using a github actions to automatically deploy the site #1

Open
ccamara opened this issue Aug 4, 2023 · 1 comment
Open
Assignees

Comments

@ccamara
Copy link
Member

ccamara commented Aug 4, 2023

Currently, the site needs to be deployed locally running ghp-import -n -p -f _build/html

This is fast and easy, but may cause divergences if something gets committed to main but the command for building the book is not run. Github actions could address that.

This page explains how to do it: https://jupyterbook.org/en/stable/publish/gh-pages.html

@ccamara ccamara self-assigned this Aug 4, 2023
@ccamara
Copy link
Member Author

ccamara commented Aug 4, 2023

Commit e23df4c is an attempt to do it. Regretfully, it fails because of this line: https://github.com/WarwickCIM/IM939_handbook/blob/e23df4c0f603be98287281e81ea374d46c81ebc1/.github/workflows/book.yml#L24

which calls requirements.txt which was deleted in favour of using a conda environment.

The default github action should be updated to include conda environments instead.

ccamara added a commit that referenced this issue Aug 4, 2023
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

1 participant