mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 18:15:42 +01:00
Change action for release to use Makefile
* Remove matrix strategy and single go release actions. * Update go setup action to use latest version. * Use action to upload both distribution archives created by make.
This commit is contained in:
parent
8a1ebe0b7a
commit
4d7538db41
1 changed files with 18 additions and 33 deletions
51
.github/workflows/release.yml
vendored
51
.github/workflows/release.yml
vendored
|
|
@ -6,38 +6,23 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
releases-matrix:
|
releases-matrix:
|
||||||
name: Release Go Binary
|
name: Release Go binaries
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
goos: [linux, windows]
|
|
||||||
goarch: [amd64]
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout
|
||||||
- uses: wangyoucao577/go-release-action@v1.25
|
uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
- name: Set up Go
|
||||||
goos: ${{ matrix.goos }}
|
uses: actions/setup-go@v3
|
||||||
goarch: ${{ matrix.goarch }}
|
with:
|
||||||
goversion: "latest"
|
go-version: '^1.18.2'
|
||||||
build_flags: -v
|
|
||||||
project_path: ./cmd/csaf_checker
|
- name: Build
|
||||||
binary_name: csaf_checker
|
run: make dist
|
||||||
- uses: wangyoucao577/go-release-action@v1.25
|
|
||||||
with:
|
- name: Upload release assets
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
uses: softprops/action-gh-release@v1
|
||||||
goos: ${{ matrix.goos }}
|
with:
|
||||||
goarch: ${{ matrix.goarch }}
|
files: |
|
||||||
goversion: "latest"
|
dist/csaf_distribution-*.zip
|
||||||
build_flags: -v
|
dist/csaf_distribution-*.tar.gz
|
||||||
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