Skip to content

Build and Release Go Binaries #2

Build and Release Go Binaries

Build and Release Go Binaries #2

Workflow file for this run

name: Build and Release Go Binary
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Build binary
run: |
go build -o commit-msg-go commit-msg.go
- name: Upload Release Asset
uses: softprops/action-gh-release@v2
with:
files: commit-msg-go
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}