File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ github : ftl
2+ custom : ["https://paypal.me/thecodingflow"]
Original file line number Diff line number Diff line change 1+ name : CI-Build
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ - " **"
8+ pull_request :
9+ branches :
10+ - master
11+
12+ jobs :
13+ build :
14+ name : Build
15+ runs-on : ubuntu-22.04
16+ outputs :
17+ version_number : ${{ steps.version_number.outputs.version_number }}
18+ steps :
19+ - name : Check out code into the Go module directory
20+ uses : actions/checkout@v3
21+ with :
22+ fetch-depth : 0
23+
24+ - name : Set up Go 1.26
25+ uses : actions/setup-go@v4
26+ with :
27+ go-version : " 1.26.1"
28+ id : go
29+
30+ - name : Version Number
31+ id : version_number
32+ run : echo "version_number=$(make version_number)" >> $GITHUB_OUTPUT
33+
34+ - name : Show Version
35+ run : echo "Version ${{ steps.version_number.outputs.version_number }}"
36+
37+ - name : Build
38+ run : make prepare build archive
39+
40+ - name : " Upload binary archive"
41+ uses : actions/upload-artifact@v4
42+ with :
43+ name : hamlibplugin-archive
44+ path : ./com.thecodingflow.hamlibplugin.zip
Original file line number Diff line number Diff line change 11build
22* .prompt.md
3+ * .zip
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ VERSION_NUMBER ?= $(shell git describe --tags 2>/dev/null || echo "v0.0.0-dev" |
55BUILD_DIR = build
66PLUGIN_DIR = ${BUILD_DIR}/${PLUGIN_ID}.sdPlugin
77DEST_DIR ?= ~/.config/opendeck/plugins
8+ ARCHIVE_DIR: =$(shell pwd)
9+
10+ version_number :
11+ @echo ${VERSION_NUMBER}
812
913.PHONY : clean
1014clean :
@@ -33,3 +37,7 @@ install: uninstall
3337.PHONY : uninstall
3438uninstall :
3539 rm -rf ${DEST_DIR} /${PLUGIN_ID} .sdPlugin
40+
41+ .PHONY : archive
42+ archive : prepare build
43+ (cd ${BUILD_DIR} && zip -r ${ARCHIVE_DIR} /${PLUGIN_ID} .zip ${PLUGIN_ID} .sdPlugin/)
Original file line number Diff line number Diff line change 22 "Name" : " Hamlib OpenAction Plugin" ,
33 "Author" : " ftl" ,
44 "Version" : " --VERSION--" ,
5- "Icon" : " icons/hamlib " ,
5+ "Icon" : " icons/category " ,
66 "Category" : " Hamlib" ,
77 "CategoryIcon" : " icons/category" ,
88 "PropertyInspectorPath" : " pi/empty.html" ,
You can’t perform that action at this time.
0 commit comments