Skip to content

Auto-deployment to gh-pages #3

@Zabuzard

Description

@Zabuzard

Initially, we use gh-pages to publish our website (https://together-java.github.io/ModernJava/). This is automatically deployed from the gh-pages branch.

Currently, we tried using an existing gh-action that, on pushes to master, builds the book and pushes it to the gh-pages branch. For some reason, the action fails:

https://github.com/Together-Java/ModernJava/actions/runs/3891853695
errors

Either we investigate and fix the action, or we do it ourselves. mdBook actually has a guide for this: https://github.com/rust-lang/mdBook/wiki/Automated-Deployment%3A-GitHub-Pages

But essentially, all that has to be done is:

  • download the mdbook CLI tool
  • run mdbook build
  • publish the content in book/ into gh-pages (a bit annoying, since the working tree has to be changed to there)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions