Skip to content

v0.3.1

v0.3.1 #7

Workflow file for this run

name: Release
on:
release:
types: [created]
permissions:
contents: write
jobs:
publish-cli:
if: startsWith(github.ref, 'refs/tags/v') == true
runs-on: macos-12
steps:
- name: Set up Go 1.19
uses: actions/setup-go@v5
with:
go-version: 1.20.x
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- id: get_version
run: |
RELEASE_VERSION=$(echo $GITHUB_REF | sed -nE 's!refs/tags/!!p')
echo "::set-output name=release_version::$RELEASE_VERSION"
- name: Compile binaries
run: |
chmod +x ./hack/build.sh
./hack/build.sh
env:
RELEASE_VERSION: ${{ steps.get_version.outputs.release_version }}
- name: Save release assets
uses: softprops/action-gh-release@v1
with:
files: release/*