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

Create GH Actions workflow for templating a blog post #113

Open
zenlex opened this issue Aug 24, 2022 · 0 comments
Open

Create GH Actions workflow for templating a blog post #113

zenlex opened this issue Aug 24, 2022 · 0 comments
Assignees
Labels
ci/cd infrastructure / automation

Comments

@zenlex
Copy link
Collaborator

zenlex commented Aug 24, 2022

This project pulls blog posts from markdown files in the repository dynamically. New posts can be created simply by merging markdown files where the path is /src/pages/blog/{slug}. The action should be configured for manual triggering with these inputs:

  • title
  • author

The action should:

  • generate a url safe simple slug (see examples in src/pages/blog)
  • checkout the current content/blog branch
  • create an index.md file at /pages/blog/{slug}
  • the index.md file should contain frontmatter in the following format:
---
- title: {user title from workflow trigger}
- author: {user author from workflow trigger}
- date: {current date as ISO-8601 string}
- content-type: "blog | project | event" (each document will only be one type)
- publish: true | false
---
  • commit the changes and push to content/blog
  • generate pr from content/blog -> dev
  • bonus points if it redirects to the newly created index.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/cd infrastructure / automation
Projects
Status: Selected for Development
Development

No branches or pull requests

1 participant