Skip to content

Build Release

Build Release #5

Workflow file for this run

name: Build Release
on:
push:
tags:
- 'v*'
release:
types: [created, published]
env:
GO_VERSION: "1.25"
GOLANG_CROSS_VERSION: "v1.25.0"
jobs:
release:
name: Release Go Binary
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup Release Environment
run: |-
if [ "${{ github.event_name }}" = "release" ]; then
echo 'VERSION=${{ github.event.release.tag_name }}' > .release-env
else
echo 'VERSION=${{ github.ref_name }}' > .release-env
fi
echo 'GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}' >> .release-env
- name: Build and Release
run: make release