forked from cli/gh-extension-precompile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
27 lines (27 loc) · 1019 Bytes
/
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
name: "release extension"
description: "Generate a release for a precompiled gh extension"
inputs:
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
with:
go-version: '1.16'
- 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