-
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.29 KB
/
release.yml
File metadata and controls
51 lines (43 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Release-Build
on:
push:
tags:
- "v*.*.*"
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
version_number: ${{ steps.version_number.outputs.version_number }}
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Go 1.26
uses: actions/setup-go@v6
with:
go-version: "1.26.1"
id: go
- name: Version Number
id: version_number
run: echo "version_number=$(make version_number)" >> $GITHUB_OUTPUT
- name: Show Version
run: echo "Version ${{ steps.version_number.outputs.version_number }}"
- name: Build
run: make prepare build archive
- name: "Upload binary archive"
uses: actions/upload-artifact@v7
with:
name: hamlibplugin-archive
path: ./com.thecodingflow.hamlibplugin.zip
- name: Upload package to the release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: ./com.thecodingflow.hamlibplugin.zip
asset_name: com.thecodingflow.hamlibplugin.zip
overwrite: true