Skip to content

release-cli

release-cli #47

Workflow file for this run

# This workflow will build bkpaas-cli and restore
name: release-cli
on:
release:
types:
- created
jobs:
release-cli:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- goarch: arm64
goos: darwin
bin_name: bkpaas-cli
- goarch: amd64
goos: darwin
bin_name: bkpaas-cli
- goarch: amd64
goos: linux
bin_name: bkpaas-cli
- goarch: arm64
goos: linux
bin_name: bkpaas-cli
- goarch: amd64
goos: windows
bin_name: bkpaas-cli.exe
steps:
- name: checkout code
uses: actions/checkout@v3
- name: release go binaries
uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.REPO_RELEASE_ACCESS_TOKEN }}
goversion: 1.19.4
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
project_path: bkpaas-cli
build_command: make build GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} VERSION=${{ github.event.release.tag_name }}
extra_files: LICENSE.txt bkpaas-cli/Readme.md bkpaas-cli/${{ matrix.bin_name }}
asset_name: bkpaas-cli-${{ github.event.release.tag_name }}-${{ matrix.goos }}-${{ matrix.goarch }}
md5sum: false