forked from cli/gh-extension-precompile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
28 lines (28 loc) · 1.18 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
name: "release extension"
description: "Generate a release for a precompiled gh extension"
inputs:
platforms:
description: 'comma separated list of platform identifiers, like: "windows-arm64,plan9-amd64,solaris-amd64"'
default: "darwin-amd64,linux-386,linux-arm,linux-amd64,linux-arm64,windows-386,windows-amd64"
gpg_fingerprint:
description: "gpg fingerprint to use for signing releases. signing is disabled if empty."
build_script_override:
description: "use a custom build script instead of relying on built-in go compilation. see README.md for requirements."
branding:
color: purple
icon: box
runs:
using: composite
steps:
# TODO i hate setting this up even for people not using the default Go
# build script, but there's no way to conditionalize it that I can figure
# out.
- uses: actions/setup-go@v2
- run: ${{ github.action_path }}/build_and_release.sh
env:
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_TOKEN: ${{ github.token }}
GH_EXT_BUILD_SCRIPT: ${{ inputs.build_script_override }}
GH_EXT_PLATFORMS: ${{ inputs.platforms }}
GPG_FINGERPRINT: ${{ inputs.gpg_fingerprint }}
shell: bash