Skip to content

v1.0.1-release

v1.0.1-release #28

Workflow file for this run

name: Release Binary
on:
release:
types:
- published
jobs:
release:
name: Release Binaries
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows]
goarch: [amd64, arm64]
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Read version from release.json
uses: notiz-dev/github-action-json-property@release
id: client_version
with:
path: 'release.json'
prop_path: 'version'
- name: Read go_version from release.json
uses: notiz-dev/github-action-json-property@release
id: go_version
with:
path: 'release.json'
prop_path: 'go_version'
- name: Build cybr CLI binaries
uses: wangyoucao577/go-release-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "https://dl.google.com/go/go${{ steps.go_version.outputs.prop }}.linux-amd64.tar.gz"
project_path: "./"
binary_name: "cybr"
asset_name: cybr-cli_${{ steps.client_version.outputs.prop }}_${{ matrix.goos }}_${{ matrix.goarch }}
extra_files: LICENSE README.md SECURITY.md