Skip to content

release

release #39

Workflow file for this run

name: release
on:
push:
tags:
- "v*"
jobs:
create-release:
name: Create Release
runs-on: "ubuntu-latest"
steps:
# Install golang
- uses: actions/setup-go@v5
with:
go-version: "^1.21"
# Checkout code
- uses: actions/checkout@v4
# Install golang deps, using a cache
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ubuntu-latest-1.21-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
ubuntu-latest-1.21-go-
# build binaries for all supported environments
- run: sudo apt update && sudo apt install -y make
- run: make build-all
# Create the binary checksums
- name: Get the version
id: get_version
run: echo VERSION=${GITHUB_REF#refs/tags/v} >> $GITHUB_OUTPUT
- uses: jmgilman/actions-generate-checksum@521a903edf511407d8bd5535d257402fd9bb5db0
id: checksums
with:
patterns: "build/${{ steps.get_version.outputs.VERSION }}/*"
method: sha512
output: checksums.txt
# Create the release
- uses: "marvinpinto/action-automatic-releases@d68defdd11f9dcc7f52f35c1b7c236ee7513bcc1"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
build/${{ steps.get_version.outputs.VERSION }}/*
checksums.txt