-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
88 lines (70 loc) · 3.05 KB
/
action.yaml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: 'Hugo Build and Deploy'
author: 'Adam Ormsby (@aormsby)'
description: 'Automatically builds and deploys Hugo website, works with submodules'
branding:
icon: upload-cloud
color: orange
inputs:
hugo_publish_directory:
description: 'Name of Hugo publish directory, Hugo default is "public"'
required: true
default: 'public'
source_branch:
description: 'Branch with source code for the build, this should be checked out by actions/checkout step'
required: true
release_branch:
description: 'Branch where site is built and deployed, separate from source branch for easy access to build history'
required: true
merge_args:
description: 'Args for merging the source branch into the release branch, default is to take all changes from source'
required: true
default: '-s recursive -Xtheirs'
submodule_release_branch:
description: 'If your Hugo publish directory is a git submodule inside your main project, this sets the branch to publish to in that submodule'
required: false
# please use with caution
full_rebuild:
description: "If 'true', clear build directory and build entire site (clear step ignores files in the 'do_not_delete_regex' pattern)"
required: true
default: false
full_rebuild_verbose:
description: "If 'true', prints out saved/deleted files and directories before performing the cleaning operation"
required: true
default: false
# takes regex patterns separated by pipe character
# these patterns are saved from cleaning by default: '^\.+$|^\.git$|^CNAME$'
do_not_delete_regex:
description: 'Files to save when cleaning deploy directory with "full_rebuild" option, regex input required (be careful with special characters like ".")'
required: false
commit_message:
description: 'Custom commit message for release (default message provided, default description always added)'
required: false
hugo_build_options:
description: 'Include additional Hugo build options as a single string, e.g. "--buildFuture" or "--verbose""'
required: false
git_config_user:
description: 'Git user credentials for sigining commit, (set to "null" for no config)'
required: true
default: 'Action - Hugo Deploy'
git_config_email:
description: 'Git email credentials for sigining commit (set to "null" for no config)'
required: true
default: '[email protected]'
strict_build_mode:
description: 'If set to "false", hugo builds with warnings will be allowed to proceed. Defaults to "true", Hugo warnings will cause action failure.'
required: true
default: true
tag_release:
description: 'Set "true" to tag release with build number'
required: true
default: false
test_mode:
description: 'If set to "true", runs verification test on all inputs and any testable actions that use them'
required: true
default: 'false'
outputs:
was_new_build_created:
description: 'true when new build was made and published, false on failure or safe exit (nothing new to build)'
runs:
using: 'node12'
main: 'main.js'