Fix[CD]: try to fix go-release-action config

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

View File

@ -2,7 +2,7 @@ name: Build and Release
on: on:
release: release:
types: [published] types: [created]
workflow_dispatch: workflow_dispatch:
# inputs: # inputs:
# repository: # repository:
@ -34,7 +34,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }} goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }} goarch: ${{ matrix.goarch }}
goversion: "https://dl.google.com/go/go1.22.2.linux-amd64.tar.gz" # goversion: "https://dl.google.com/go/go1.22.2.linux-amd64.tar.gz"
project_path: "./cmd/HellPot" project_path: "./cmd/HellPot"
binary_name: "HellPot" binary_name: "HellPot"
compress_assets: OFF compress_assets: OFF
@ -42,7 +42,7 @@ jobs:
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.ref }} ldflags: -s -w -X main.version=${{ github.ref }}
release_tag: ${{ github.ref }} # release_tag: ${{ github.ref }}
md5sum: FALSE md5sum: FALSE
sha256sum: TRUE sha256sum: TRUE
# - name: Add reaction # - name: Add reaction