1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +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:
Bernhard Reiter 2022-05-11 10:35:59 +02:00
parent 8a1ebe0b7a
commit 4d7538db41
No known key found for this signature in database
GPG key ID: 2B7BA3BF9BC3A554

View file

@ -6,38 +6,23 @@ on:
jobs:
releases-matrix:
name: Release Go Binary
name: Release Go binaries
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
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '^1.18.2'
- name: Build
run: make dist
- name: Upload release assets
uses: softprops/action-gh-release@v1
with:
files: |
dist/csaf_distribution-*.zip
dist/csaf_distribution-*.tar.gz