Skip to content

v0.0.9

v0.0.9 #31

Workflow file for this run

name: Release
on:
release:
types: [created]
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@v2
with:
go-version: 1.19
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- 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/*