Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/TechDufus/BlogQueue
Queue up blog posts to release on your own schedule, all hosted in GitHub.
https://github.com/TechDufus/BlogQueue
Last synced: 8 days ago
JSON representation
Queue up blog posts to release on your own schedule, all hosted in GitHub.
- Host: GitHub
- URL: https://github.com/TechDufus/BlogQueue
- Owner: TechDufus
- License: mit
- Created: 2021-11-22T06:42:02.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-27T20:43:15.000Z (12 months ago)
- Last Synced: 2024-11-13T16:06:47.567Z (29 days ago)
- Language: PowerShell
- Size: 7.81 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - TechDufus/BlogQueue - Queue up blog posts to release on your own schedule, all hosted in GitHub. (PowerShell)
README
# BlogQueue
Queue up blog posts to release on your own schedule, all hosted in GitHub.This action is meant to add a post file into your posts directory in your blog repo. In many cases, simply adding the new blog file will trigger CI to redeploy your website with the new post.
In your repository workflow file, you provide the path to your blog queue directory (where the pending blog files are stored), and the directory your blog uses for live posts. Here's an example workflow that will run on a weekly schedule.
```yaml
name: Blog Queue Workflow
#Run every Monday at 10:00AM.
on:
schedule:
- cron: '0 10 * * 1'
workflow_dispatch:jobs:
update-sponsors-section:
name: Publish blog post from queue.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: matthewjdegarmo/blogqueue@latest
with:
queue_path: ./.blogqueue
destination_path: ./_posts/
```This action is pretty basic, and doesn't support any type of custom ordering of which blog to post next. This action uses the default order that the PowerShell `Get-ChildItem` command gives you, and uses the first one in the list.