-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
61 lines (61 loc) · 1.57 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
49
50
51
52
53
54
55
56
57
58
59
60
61
#基本设置
name: 'Hugo Action'
description: 'FlySoloing Hugo Action'
author: 'flysoloing'
#
branding:
icon: 'upload-cloud'
color: 'blue'
#入参列表
inputs:
theme_repo_url:
description: 'hugo theme github repository, default is hugo-theme-qiuqiu'
required: false
default: 'https://github.com/flysoloing/hugo-theme-qiuqiu'
source_repo_url:
description: 'github article repository'
required: true
target_repo_url:
description: 'github user or organization page, <USERNAME>.github.io'
required: true
config_file_url:
description: 'hugo config file address'
required: false
base_url:
description: 'site index page address'
required: false
site_title:
description: 'site title'
required: false
default: 'FlySoloing'
language_code:
description: 'site language code'
required: false
default: 'en-us'
theme_name:
description: 'hugo theme name'
required: false
default: 'hugo-theme-qiuqiu'
has_cjk_language:
description: 'Chinese/Japanese/Korean language support'
required: false
default: false
summary_length:
description: 'article summary length'
required: false
default: 140
#运行设置
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.theme_repo_url }}
- ${{ inputs.source_repo_url }}
- ${{ inputs.target_repo_url }}
- ${{ inputs.config_file_url }}
- ${{ inputs.base_url }}
- ${{ inputs.site_title }}
- ${{ inputs.language_code }}
- ${{ inputs.theme_name }}
- ${{ inputs.has_cjk_language }}
- ${{ inputs.summary_length }}