-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
43 lines (40 loc) · 1.38 KB
/
Copy pathaction.yml
File metadata and controls
43 lines (40 loc) · 1.38 KB
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
name: "Publish to Hashnode"
description: "Publish markdown files from your repository to a Hashnode publication. Requires a publication on Hashnode Pro."
author: "Hashnode"
branding:
icon: "upload-cloud"
color: "blue"
inputs:
access-token:
description: "Hashnode Personal Access Token. Generate one in Settings > Developer, store it as a repository secret."
required: true
publication-id:
description: "Target publication id. Provide this or publication-host."
required: false
publication-host:
description: "Target publication host, e.g. myblog.hashnode.dev. Provide this or publication-id."
required: false
posts-directory:
description: "Directory containing the markdown posts, relative to the repository root."
required: false
default: "."
gql-endpoint:
description: "Hashnode GraphQL endpoint."
required: false
default: "https://gql-beta.hashnode.com"
dry-run:
description: "Parse, validate and report without publishing anything."
required: false
default: "false"
max-files:
description: "Maximum number of markdown files processed per run."
required: false
default: "10"
outputs:
result:
description: "JSON summary of the run: published, updated, drafted, skipped and errored files."
result_summary:
description: "One-line human readable summary."
runs:
using: "node24"
main: "dist/index.js"