v1.3.0-beta.1 #50
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build bkpaas-cli and restore | |
name: release-cli | |
on: | |
release: | |
types: | |
- created | |
jobs: | |
release-cli: | |
runs-on: ubuntu-latest | |
if: github.event.release && contains(github.event.release.tag_name, 'bkpaas-cli') | |
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.20" | |
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 }} | |
# tag_name 需要以 bkpaas-cli 为前缀 | |
asset_name: ${{ github.event.release.tag_name }}-${{ matrix.goos }}-${{ matrix.goarch }} | |
md5sum: false |