From 81e2fb3b127b89a14fda0446af00e7f27207fb8f Mon Sep 17 00:00:00 2001 From: "kayos@tcp.direct" Date: Wed, 1 May 2024 12:36:42 -0700 Subject: [PATCH] Fix[CD]: run release build matrix on github release creation --- .github/workflows/release-command.yml | 40 +++++++++++++-------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/release-command.yml b/.github/workflows/release-command.yml index 013e430..926099d 100644 --- a/.github/workflows/release-command.yml +++ b/.github/workflows/release-command.yml @@ -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