forked from InfraWay/post-medium-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
49 lines (43 loc) · 1.17 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
43
44
45
46
47
48
name: "Medium Post"
description: "Pushes markdown post to medium"
author: "InfraWay"
inputs:
app_id:
description: "Medium's App ID"
required: true
app_secret:
description: "Medium's App ID"
required: true
access_token:
description: "Medium's Access Token"
required: true
markdown_file:
description: "Markdown post file"
required: true
base_url:
description: "Base blog's URL. Example: https://myblog"
required: false
default: ""
post_url:
description: "Base blog's post URL. Example: https://myblog/posts"
required: false
default: ""
post_status:
description: "Post's status. Valid values are 'draft', 'public', or 'unlisted'"
required: false
default: "draft"
post_license:
description: "Post's license. Valid values are 'all-rights-reserved', 'cc-40-by', 'cc-40-by-sa', 'cc-40-by-nd', 'cc-40-by-nc', 'cc-40-by-nc-nd', 'cc-40-by-nc-sa', 'cc-40-zero', 'public-domain'"
required: false
default: "all-rights-reserved"
outputs:
id:
description: "Post medium ID"
url:
description: "Post medium URL"
runs:
using: "node12"
main: "index.js"
branding:
icon: "cast"
color: "yellow"