Merge pull request #14 from nexB/prepare-v1.0.0-release #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Go binaries for supported platforms and publish them as GitHub release | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22.x' | |
- name: Install dependencies | |
run: make dev | |
- name: Build all | |
run: make build-all | |
- name: Upload built binaries | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Go binaries | |
path: build/* | |
- name: Create a GitHub release | |
uses: softprops/action-gh-release@v2 | |
with: | |
draft: false | |
files: build/* |