forked from meeDamian/github-release
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
67 lines (55 loc) · 2.31 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
62
63
64
65
66
67
name: Github Release create, update, and upload assets
description: Github Action to create, update, or add files to Github Releases
author: 'Damian Mee <spam@meedamian.com>'
inputs:
# Exposed Github API inputs (identical to ones consumed by Github API):
# https://developer.github.com/v3/repos/releases/#create-a-release
# NOTE: No defaults set for these, to avoid override on update due to the impossibility
# of distinguishing between default and user input.
token:
description: Github API token to be used. Quite unavoidable, I'm afraid.
required: true
tag:
description: >
A tag for the release. Required UNLESS action is run on tag push (meaning: '$GITHUB_REF' contains 'ref/tag/<TAG>').
required: false
commitish:
description: Unnecessary, if the tag provided is a git tag. If it isn't, release will be created off 'master'.
required: false
name:
description: Name the release, the more creative, the better.
required: false
body:
description: Longer description of the release, ex. changelog, or info about contributors.
required: false
draft:
description: >
Keep the Release as draft and don't publish it. With no 'files', the default is 'false'. With 'files' default is
to 'un-draft' the release only after and if all assets upload successfully. Keep it private with explicit 'false'.
required: false
prerelease:
description: Marks Release as a pre-Release.
required: false
# Inputs specific to this-action:
files:
description: >
A whitespace-separated(!) list of files to be uploaded. It's impossible to pass a list here, so make sure
filenames don't contain spaces nor colons in their names/paths. Optionally custom asset name can be specified
by pre-pending it to the name, ex: 'asset-name.tgz:./folder-to-be-uploaded/'.
required: false
gzip:
description: >
Default is 'true', which compresses both files, and folders. 'false' compresses nothing, but will error out on
folders, as they can't be uploaded. 'folders' applies compression to folders only.
required: false
default: true
allow_override:
description: Set to 'true' to allow for release overriding.
required: false
default: false
runs:
using: docker
image: Dockerfile
branding:
color: green
icon: anchor