Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.02 KB

README.md

File metadata and controls

42 lines (27 loc) · 1.02 KB

ghost-post

GitHub Action for publishing HTML to a Ghost instance

Usage

  - uses: DiscordDungeons/[email protected]
    with:
      post_title: 'New update!'
      post_html: '<p>Content</p>'
      post_excerpt: 'Optional Excerpt'
      post_tags: 'Tag 1,Tag 2'
      ghost_url: ${{ secrets.GHOST_URL }}
      ghost_admin_key: ${{ secrets.GHOST_ADMIN_KEY }}

This example will send the HTML <p>Content</p> to the GHOST_URL parameter, as a draft.

Inputs

post_title

Required The title that the post will have

post_html

Required The HTML content of the post

post_excerpt

Optional An optional custom excerpt

post_tags

Optional A list of tags, seperated by a comma (,)

ghost_url

Required The URL of the Ghost instance the post will be published to

ghost_admin_key

Required The admin key of your integration. For information about generating this, please refer to here