gh ci build 2 #5
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 and Release Binaries | |
on: | |
push: | |
branches: [ internal/master ] | |
workflow_dispatch: | |
inputs: | |
releaseVersion: | |
description: 'Release version' | |
required: false | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- name: Build using Makefile | |
run: make build | |
- name: Create GitHub Release | |
id: create_release | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: ${{ github.sha }} | |
name: Release ${{ github.sha }} | |
draft: false | |
prerelease: false | |
- name: Upload binary1 to Release | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: dist/venom.darwin-amd64,dist/venom.darwin-arm64,dist/venom.linux-amd64,dist/venom.windows-amd64 | |
tag: ${{ github.sha }} |