Building a blog using github issues
what else can we do with github actions
- tags
- github
- static_sites
Contents
I wanted to see if I could write blog posts using github issues, and have them be published on the web. You can!
Create a jekyll site
|
|
Then inside
|
|
Create the repo
|
|
Add the secret
|
|
Issue to Post workflow
When you open or edit and issue, we check out the repo, and then
create a file in the _posts
directory can fill in the information
Once that's done, we trigger a deploy
action using
peter-evans/repository-dispatch
to trigger the second build action.
|
|
Deploy to pages
Here we check out the code and deploy it to github pages. We replace
the baseurl
with the base_path
that we get from configure-pages
, so
its smart enough to know if you have it on a custom domain or as a
subdirectory.
|
|
Check it out
You can see it in action:
Previously
Next