Skip to content

Setup deployment #30

Open
Open

Description

@dolsysmith

With GitHub Actions, we can:

  • Trigger a Sphinx/JupyterBook build of the contents of textbook
  • Use Jekyll to build and deploy Parsons Problems

These workflows should be triggered on push to main?

Activity

  1. dolsysmith commented on Jul 6, 2023

    @dolsysmith
    CollaboratorAuthor

    GH Actions Workflow:

    1. Create the Parsons Problems with parsons_builder.py.
    2. Create the book HTML using jupyter-book build (as in this example).
    3. Run the postprocessing script.
    4. Deploy the _build folder (following the deploy job in the above workflow.
  2. dolsysmith commented on Jul 12, 2023

    @dolsysmith
    CollaboratorAuthor

    Write a postprocessing script to run on the notebook JSON after running jupyterbook build. This script should target the notebooks in the textbook/_build/_sources directory, not the textbook/notebooks directory!

    Postprocessing

    • Remove MyST directives from markdown cells. Such directives are prefixed by four backticks, but these cause problems in the classic notebook interface (i.e., on JupyterHub) if the cells also contain backticks to isolate code blocks. The postprocessing script should simple remove any lines of source that begin with four backticks.
    • For the {image} directive, replace the block with a standard notebook inline image cell, using the URL following the directive.
    • Remove any cells tagged as instructor. These should be tagged also as remove-cell to exclude them from the rendered book. But we want to remove the cells from the student version of the notebooks, too.
  3. dolsysmith commented on Jul 17, 2023

    @dolsysmith
    CollaboratorAuthor

    Add to publish.sh steps:

    • Copy homework and autograder to the appropriate submodule directories in homework-modeuls
    • Trigger commits to submodule repos

    • GitHub Actions: replicate steps in publish.sh
  4. dolsysmith commented on Apr 19, 2024

    @dolsysmith
    CollaboratorAuthor
    • Dockerize repo in order to execute in GH Actions runner more efficiently.
    • GH Actions script to build & publish on push to main.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions