Skip to content

Commit 1f296a8

Browse files
authored
Create workflows release.yml
1 parent 02d99ef commit 1f296a8

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will build a golang project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3+
4+
name: Build Release
5+
6+
on:
7+
push:
8+
tags:
9+
- v*
10+
11+
permissions:
12+
contents: write
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- name: Set up Go
21+
uses: actions/setup-go@v4
22+
with:
23+
go-version-file: go.mod
24+
check-latest: true
25+
26+
- name: Build
27+
run: make all
28+
29+
- name: Create Release and Upload Release Asset
30+
uses: softprops/action-gh-release@v1
31+
if: startsWith(github.ref, 'refs/tags/')
32+
with:
33+
name: Release ${{ github.ref_name }}
34+
draft: false
35+
prerelease: false
36+
files: |
37+
build/*

0 commit comments

Comments
 (0)