GeezerVison is showing github.com — make a zip archive and add a CI build · ftl/hamlibplugin@fb742e8
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +github: ftl |
| 2 | +custom: ["https://paypal.me/thecodingflow"] |
Collapse file
Copy file name to clipboard +44Lines changed: 44 additions & 0 deletions | 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 |
Collapse file
Copy file name to clipboard +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | build |
2 | 2 | *.prompt.md |
| 3 | +*.zip |
Collapse file
Copy file name to clipboardExpand all lines: Makefile +8Lines changed: 8 additions & 0 deletions | 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" | |
5 | 5 | BUILD_DIR = build |
6 | 6 | PLUGIN_DIR = ${BUILD_DIR}/${PLUGIN_ID}.sdPlugin |
7 | 7 | DEST_DIR ?= ~/.config/opendeck/plugins |
| 8 | +ARCHIVE_DIR:=$(shell pwd) |
| 9 | + |
| 10 | +version_number: |
| 11 | + @echo ${VERSION_NUMBER} |
8 | 12 |
|
9 | 13 | .PHONY: clean |
10 | 14 | clean: |
@@ -33,3 +37,7 @@ install: uninstall |
33 | 37 | .PHONY: uninstall |
34 | 38 | uninstall: |
35 | 39 | 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/) |
Collapse file
Copy file name to clipboardExpand all lines: manifest.json +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
2 | 2 | "Name": "Hamlib OpenAction Plugin", |
3 | 3 | "Author": "ftl", |
4 | 4 | "Version": "--VERSION--", |
5 | | - "Icon": "icons/hamlib", |
| 5 | + "Icon": "icons/category", |
6 | 6 | "Category": "Hamlib", |
7 | 7 | "CategoryIcon": "icons/category", |
8 | 8 | "PropertyInspectorPath": "pi/empty.html", |
|