A template repo for blog repositories.
- New branch called 'gh-pages' created from the main branch.
- Enable GitHub Pages in the repository settings, selecting the 'gh-pages' branch as the source.
- Enable Discussions in the repository settings.
The Blog.yml
file is used to deploy the blog to Github Pages. The entire blog is generated from the discussions in the repository and runs
when . The workflow is triggered when a discussion is created or updated.
- Open a Discussion of type 'Blog'.
- Upon discussion creation of update, a workflow is triggered:
- Get all discussions of type 'Blog'.
- Create a Markdown file for each discussion.
- Push the Markdown files to the 'gh-pages' branch.
- GitHub Pages will automatically deploy the changes to the website.