mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Go binaries for Github releases (#86)
* Add github action to automate publishing Go binaries for Github releases.
This commit is contained in:
parent
a91d36cc95
commit
530a02742e
1 changed files with 43 additions and 0 deletions
43
.github/workflows/release.yml
vendored
Normal file
43
.github/workflows/release.yml
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue