1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00
gocsaf/.github/workflows/release.yml
Bernhard E. Reiter 102a0bb6c1
Improve release process
* Add only uploader and checker binaries and basic documentation to windows dist archive.
  Prepare for specific docs.

* Improve Makefile to be able to use github lightweight git tags for release version calculation.
* Change github action to use the make dist target for asset uploading.
  * 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.

* Improve the pattern to leave tagged release version numbers like
   `0.2.2-alpha` alone and only increase version numbers where
   git describe has added a string starting with a number.
2022-05-11 12:46:02 +02:00

28 lines
593 B
YAML

name: Publish Go binaries to github release
on:
release:
types: [created]
jobs:
releases-matrix:
name: Release Go binaries
runs-on: ubuntu-latest
steps:
- 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