Skip to content

Commit fb742e8

Browse files
committed
make a zip archive and add a CI build
1 parent 9b3e5e2 commit fb742e8

5 files changed

Lines changed: 56 additions & 1 deletion

File tree

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: ftl
2+
custom: ["https://paypal.me/thecodingflow"]

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
build
22
*.prompt.md
3+
*.zip

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ VERSION_NUMBER ?= $(shell git describe --tags 2>/dev/null || echo "v0.0.0-dev" |
55
BUILD_DIR = build
66
PLUGIN_DIR = ${BUILD_DIR}/${PLUGIN_ID}.sdPlugin
77
DEST_DIR ?= ~/.config/opendeck/plugins
8+
ARCHIVE_DIR:=$(shell pwd)
9+
10+
version_number:
11+
@echo ${VERSION_NUMBER}
812

913
.PHONY: clean
1014
clean:
@@ -33,3 +37,7 @@ install: uninstall
3337
.PHONY: uninstall
3438
uninstall:
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/)

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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",

0 commit comments

Comments
 (0)