From 530a02742effff01e9183eabdfd467501153a25c Mon Sep 17 00:00:00 2001 From: Fadi Abbud <39081670+Fadiabb@users.noreply.github.com> Date: Wed, 6 Apr 2022 15:52:04 +0200 Subject: [PATCH] Go binaries for Github releases (#86) * Add github action to automate publishing Go binaries for Github releases. --- .github/workflows/release.yml | 43 +++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..8892335 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,43 @@ +name: Publish Go binaries to github release + +on: + release: + types: [created] + +jobs: + releases-matrix: + name: Release Go Binary + runs-on: ubuntu-latest + strategy: + matrix: + goos: [linux, windows] + goarch: [amd64] + steps: + - uses: actions/checkout@v2 + - uses: wangyoucao577/go-release-action@v1.25 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + goversion: "latest" + build_flags: -v + project_path: ./cmd/csaf_checker + binary_name: csaf_checker + - uses: wangyoucao577/go-release-action@v1.25 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + goversion: "latest" + build_flags: -v + project_path: ./cmd/csaf_provider + binary_name: csaf_provider + - uses: wangyoucao577/go-release-action@v1.25 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + goversion: "latest" + build_flags: -v + project_path: ./cmd/csaf_uploader + binary_name: csaf_uploader