1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00

Go binaries for Github releases (#86)

* Add github action to automate publishing Go binaries for Github
releases.
This commit is contained in:
Fadi Abbud 2022-04-06 15:52:04 +02:00 committed by GitHub
parent a91d36cc95
commit 530a02742e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

43
.github/workflows/release.yml vendored Normal file
View file

@ -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