forked from wangyoucao577/go-release-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
62 lines (62 loc) · 1.8 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
# action.yml
name: 'Go Release Binaries'
author: 'Jay Zhang <wangyoucao577@gmail.com>'
description: 'Release Go binaries to GitHub Release Assets'
inputs:
github_token:
description: 'GITHUB_TOKEN for uploading releases to Github asserts.'
required: true
default: ''
goos:
description: 'GOOS is the running programs operating system target: one of darwin, freebsd, linux, and so on.'
required: true
default: ''
goarch:
description: 'GOARCH is the running programs architecture target: one of 386, amd64, arm, s390x, and so on.'
required: true
default: ''
goversion:
description: 'The `Go` compiler version.'
required: false
default: ''
build_flags:
description: 'Additional arguments to pass the go build command.'
required: false
default: ''
ldflags:
description: 'Values to provide to the -ldflags argument'
required: false
default: ''
project_path:
description: 'Where to run `go build .`'
required: false
default: '.'
binary_name:
description: 'Specify another binary name if do not want to use repository basename'
required: false
default: ''
pre_command:
description: 'Extra command that will be executed before `go build`, may for solving dependency'
required: false
default: ''
extra_files:
description: 'Extra files that will be packaged into artifacts either.'
required: false
default: ''
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.github_token }}
- ${{ inputs.goos }}
- ${{ inputs.goarch }}
- ${{ inputs.goversion }}
- ${{ inputs.build_flags}}
- ${{ inputs.ldflags }}
- ${{ inputs.project_path }}
- ${{ inputs.binary_name }}
- ${{ inputs.pre_command }}
- ${{ inputs.extra_files }}
branding:
icon: 'package'
color: 'blue'