Fix[CD]: run release build matrix on github release creation
This commit is contained in:
parent
b647b5486d
commit
81e2fb3b12
|
@ -2,18 +2,18 @@ name: Build and Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [created]
|
types: [created, published, released]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
# inputs:
|
||||||
repository:
|
# repository:
|
||||||
description: "The repository from which the slash command was dispatched"
|
# description: "The repository from which the slash command was dispatched"
|
||||||
required: true
|
# required: true
|
||||||
comment-id:
|
# comment-id:
|
||||||
description: "The comment-id of the slash command"
|
# description: "The comment-id of the slash command"
|
||||||
required: true
|
# required: true
|
||||||
tag:
|
# tag:
|
||||||
description: "The tag to be released"
|
# description: "The tag to be released"
|
||||||
required: true
|
# required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
|
@ -40,14 +40,14 @@ jobs:
|
||||||
extra_files: LICENSE README.md
|
extra_files: LICENSE README.md
|
||||||
build_flags: -trimpath
|
build_flags: -trimpath
|
||||||
pre_command: export CGO_ENABLED=0
|
pre_command: export CGO_ENABLED=0
|
||||||
ldflags: -s -w -X main.version=${{ github.event.inputs.tag }}
|
ldflags: -s -w -X main.version=${{ github.ref }}
|
||||||
release_tag: ${{ github.event.inputs.tag }}
|
release_tag: ${{ github.ref }}
|
||||||
md5sum: FALSE
|
md5sum: FALSE
|
||||||
sha256sum: TRUE
|
sha256sum: TRUE
|
||||||
- name: Add reaction
|
# - name: Add reaction
|
||||||
uses: peter-evans/create-or-update-comment@v4
|
# uses: peter-evans/create-or-update-comment@v4
|
||||||
with:
|
# with:
|
||||||
token: ${{ secrets.PAT }}
|
# token: ${{ secrets.PAT }}
|
||||||
repository: ${{ github.event.inputs.repository }}
|
# repository: ${{ github.repository }}
|
||||||
comment-id: ${{ github.event.inputs.comment-id }}
|
# comment-id: ${{ github.event.inputs.comment-id }}
|
||||||
reaction-type: hooray
|
# reaction-type: hooray
|
||||||
|
|
Loading…
Reference in New Issue