Skip to content
Use this GitHub Action with your project

Add this Action to an existing workflow or create a new one.

View on Marketplace
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

github-action-jekyll-publish-drafts

Explores the _drafts folder of your jekyll repository, and publishes articles with the date frontmatter greater than the current time.

steps:
- uses: actions/checkout@v1
- name: Jekyll Publish Drafts
  uses: soywiz/github-action-jekyll-publish-drafts@master
  with:
    github_token: ${{ secrets.GITHUB_TOKEN }}
    jekyll_path: ./docs

This is useful as a cron action. For example each hour:

  on:
    schedule:
      - cron: '*/60 * * * *'

This way you can create drafts that will be autopublished automatically.

Full example:

name: CI

on:
  schedule:
    - cron: '*/60 * * * *'

jobs:
  build:

    runs-on: ubuntu-latest
    
    steps:
    - uses: actions/checkout@v1
    - name: Jekyll Publish Drafts
      uses: soywiz/github-action-jekyll-publish-drafts@master
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}
        jekyll_path: ./