Skip to content

Commit b2a084b

Browse files
committed
add release build
1 parent f6f2287 commit b2a084b

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Release-Build
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
8+
jobs:
9+
build:
10+
name: Build
11+
runs-on: ubuntu-latest
12+
outputs:
13+
version_number: ${{ steps.version_number.outputs.version_number }}
14+
steps:
15+
- name: Check out code into the Go module directory
16+
uses: actions/checkout@v6
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Set up Go 1.26
21+
uses: actions/setup-go@v6
22+
with:
23+
go-version: "1.26.1"
24+
id: go
25+
26+
- name: Version Number
27+
id: version_number
28+
run: echo "version_number=$(make version_number)" >> $GITHUB_OUTPUT
29+
30+
- name: Show Version
31+
run: echo "Version ${{ steps.version_number.outputs.version_number }}"
32+
33+
- name: Build
34+
run: make prepare build archive
35+
36+
- name: "Upload binary archive"
37+
uses: actions/upload-artifact@v7
38+
with:
39+
name: hamlibplugin-archive
40+
path: ./com.thecodingflow.hamlibplugin.zip
41+
42+
- name: Upload package to the release
43+
uses: svenstaro/upload-release-action@v2
44+
with:
45+
repo_token: ${{ secrets.GITHUB_TOKEN }}
46+
file_glob: true
47+
file: ./com.thecodingflow.hamlibplugin.zip
48+
tag: ${{ github.ref }}

0 commit comments

Comments
 (0)