Skip to content

v0.1.4

v0.1.4 #5

Workflow file for this run

# Copyright 2019 Iguazio
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: Release
on:
release:
types:
- created
jobs:
release:
name: Release Binary (${{ matrix.os }}:${{ matrix.arch }})
strategy:
fail-fast: false
matrix:
arch: [ amd64 ]
os: [ linux, darwin, windows ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
cache: true
go-version-file: "go.mod"
- name: Build binary
run: make v3ctl-bin
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
V3CTL_TAG: ${{ github.event.release.tag_name }}
V3CTL_SRC_PATH: ${{ github.workspace }}
V3CTL_BIN_PATH: ${{ github.workspace }}/bin
- name: Upload binaries (${{ matrix.os }}:${{ matrix.arch }})
uses: AButler/upload-release-assets@v2.0.2
with:
release-tag: ${{ github.event.release.tag_name }}
files: bin/v3ctl-*
repo-token: ${{ secrets.GITHUB_TOKEN }}