Build and Release #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Release | |
on: | |
release: | |
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 | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
goos: [linux, windows, darwin, freebsd] | |
goarch: ["386", amd64, arm64] | |
exclude: | |
- goarch: "386" | |
goos: darwin | |
- goarch: arm64 | |
goos: windows | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: wangyoucao577/go-release-action@v1.50 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
goos: ${{ matrix.goos }} | |
goarch: ${{ matrix.goarch }} | |
goversion: "https://dl.google.com/go/go1.20.1.linux-amd64.tar.gz" | |
project_path: "./cmd/HellPot" | |
binary_name: "HellPot" | |
extra_files: LICENSE README.md | |
build_flags: -trimpath | |
pre_command: export CGO_ENABLED=0 | |
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.repository }} | |
# comment-id: ${{ github.event.inputs.comment-id }} | |
# reaction-type: hooray |