-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
42 lines (39 loc) · 1.32 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: "Markdown Or Hugo To Medium"
description: "Push hugo markdown post to medium"
inputs:
markdownOrHugo:
description: "Specify is it Markdown or Hugo Markdown"
required: true
default: markdown
shortcodes:
description: "Shortcodes JSON config file location"
required: false
replaceHyperlinkToLink:
description: "Replace hyperlink to link for medium cards"
required: false
default: false
frontmatterFormat:
description: "Select frontmatter format [yaml, toml]"
required: false
default: "yaml"
draft:
description: "Publish as a draft on Medium"
required: false
default: false
canonicalRootUrl:
description: "Canonical link for specifying original article root URL with path of folder to prioritize for search engines (use for cross-posted content). eg. https://example.com/posts/"
required: false
default: ""
runs:
using: "docker"
image: "docker://imrushi/markdown-or-hugo-to-medium:latest"
args:
- -markdown-or-hugo=${{ inputs.markdownOrHugo }}
- -shortcodes-config-file=${{ inputs.shortcodes }}
- -replace-hyperlink-to-link=${{ inputs.replaceHyperlinkToLink }}
- -frontmatter=${{ inputs.frontmatterFormat }}
- -draft=${{ inputs.draft }}
- -canonical-root-url=${{ inputs.canonicalRootUrl }}
branding:
icon: "book-open"
color: "blue"