Skip to content

Commit

Permalink
feat: go binary release
Browse files Browse the repository at this point in the history
Signed-off-by: Michele Palazzi <sysdadmin@m1k.cloud>
  • Loading branch information
ironashram committed Feb 23, 2024
1 parent b55488d commit 3a4ba78
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/go-binary.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "go: build binaries"

on:
push:
tags:
- 'v*'

permissions:
contents: read

jobs:

build:
permissions:
contents: write
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux]
goarch: [amd64]

steps:

- name: Check out
uses: actions/checkout@v4

- name: Go Release Binaries
uses: wangyoucao577/go-release-action@v1.48
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
pre_command: export CGO_ENABLED=0
project_path: src
release_tag: "${{ github.ref }}"

0 comments on commit 3a4ba78

Please sign in to comment.