2020-08-26 18:18:15 +08:00
|
|
|
name: Generate Go package
|
2022-12-07 01:59:40 +08:00
|
|
|
run-name: Generate Go ${{ inputs.VERSION || '1.19.0' }}
|
2020-08-26 18:18:15 +08:00
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
VERSION:
|
|
|
|
description: 'Go version to build and upload'
|
|
|
|
required: true
|
2022-12-07 01:59:40 +08:00
|
|
|
default: '1.19.0'
|
2020-08-26 18:18:15 +08:00
|
|
|
PUBLISH_RELEASES:
|
|
|
|
description: 'Whether to publish releases'
|
2022-12-07 01:59:40 +08:00
|
|
|
type: boolean
|
2020-08-26 18:18:15 +08:00
|
|
|
required: true
|
2022-12-07 01:59:40 +08:00
|
|
|
default: false
|
2020-11-03 00:52:43 +08:00
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- 'versions-manifest.json'
|
|
|
|
- 'LICENSE'
|
|
|
|
- '**.md'
|
|
|
|
branches:
|
|
|
|
- 'main'
|
2020-08-26 18:18:15 +08:00
|
|
|
|
|
|
|
jobs:
|
2022-12-07 01:59:40 +08:00
|
|
|
go:
|
|
|
|
name: Go
|
|
|
|
uses: actions/versions-package-tools/.github/workflows/build-tool-packages.yml@main
|
|
|
|
with:
|
|
|
|
tool-name: "go"
|
|
|
|
tool-version: ${{ inputs.VERSION || '1.19.0' }}
|
|
|
|
publish-release: ${{ inputs.PUBLISH_RELEASES || false }}
|
|
|
|
secrets: inherit
|