forked from bitrise-steplib/steps-github-release
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstep.yml
executable file
·134 lines (121 loc) · 3.85 KB
/
step.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
title: Github Release
summary: Create Github Release
description: Create Github Release
website: https://github.com/bitrise-steplib/steps-github-release
source_code_url: https://github.com/bitrise-steplib/steps-github-release
support_url: https://github.com/bitrise-steplib/steps-github-release/issues
type_tags:
- deploy
toolkit:
go:
package_name: github.com/bitrise-steplib/steps-github-release
inputs:
- api_token:
opts:
title: Personal API token
summary: Github Personal API token used to access the GitHub API.
description: |-
Github Personal API token used to access the GitHub API.
Create your own token: https://github.com/settings/tokens
The following scope needs to be enabled for the token:
- repo/public_repo
is_required: true
is_sensitive: true
- username:
opts:
title: Username
summary: Your Github user name
description: Your Github user name
is_required: true
is_sensitive: true
- repository_url: $GIT_REPOSITORY_URL
opts:
title: Repository URL
summary: Github repository URL
description: |-
URL of the Github repository to release.
Available formats:
- https://hostname/owner/repository.git
- git@hostname:owner/repository.git
- ssh://git@hostname:port/owner/repository.git
is_required: true
- tag: $BITRISE_GIT_TAG
opts:
title: Tag
summary: The name of the tag.
is_required: true
- commit: $BITRISE_GIT_COMMIT
opts:
title: Commit
summary: The commit of the tag
description: |-
Specifies the commitish value that determines where the Git tag is created from.
Can be any branch or commit SHA.
Unused if the Git tag already exists.
Default: the repository's default branch (usually master).
is_required: true
- name:
opts:
title: Release name
summary: The name of the release.
is_required: true
- body:
opts:
title: Release body
summary: The body of the release.
is_required: true
- draft: "yes"
opts:
title: Draft
summary: If `no` is selected, the release will be published.
description: |-
Select `yes` to create a draft (unpublished) release, select `no` to create a published one.
value_options:
- "yes"
- "no"
is_required: true
- pre_release: "no"
opts:
title: Pre-release
summary: If 'yes' is selected, the release is identifed as pre-release.
description: |-
Specifies whether the release is identified as pre-release or not.
Select `yes` to identify release as pre-release, select `no` to identify the release as full release.
Default: `no`.
value_options:
- "yes"
- "no"
is_required: false
- files_to_upload:
opts:
title: Files to upload
summary: One file path per line to upload to the release assets section.
description: |-
One file path per line to upload to the release assets section. Optionally you can use a `|` separator at the end of the path
to set the uploaded file's name.
Example to use the file's __original name__:
```
$BITRISE_DEPLOY_DIR/app-debug.apk
$BITRISE_DEPLOY_DIR/app-debug-androidTest.apk
```
Example to use __custom file name__:
```
$BITRISE_DEPLOY_DIR/app-debug.apk|mycompany_debug_app.apk
$BITRISE_DEPLOY_DIR/app-debug-androidTest.apk|mycompany_debug_app_test.apk
```
- api_base_url: "https://api.github.com"
opts:
title: GitHub API base url
summary: API URL for GitHub or Github Enterprise.
description: |-
The default value is https://api.github.com.
is_expand: true
is_required: true
- upload_base_url: "https://uploads.github.com"
opts:
title: GitHub Upload base url
summary: Upload URL for GitHub or Github Enterprise.
description: |-
The default value is https://uploads.github.com.
is_expand: true
is_required: true