Fix[CD]: run release build matrix on github release creation

This commit is contained in:
kayos@tcp.direct 2024-05-01 12:36:42 -07:00
parent b647b5486d
commit 81e2fb3b12
No known key found for this signature in database
GPG Key ID: 4B841471B4BEE979
1 changed files with 20 additions and 20 deletions

View File

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