From 1087960416f4962fca965ef9699823554fd5cc42 Mon Sep 17 00:00:00 2001 From: Jonas Otto Date: Sat, 22 Oct 2022 12:36:50 +0200 Subject: [PATCH] add packaging script + ci --- .github/workflows/package.yml | 16 ++++++++++++++++ metadata.json | 31 +++++++++++++++++++++++++++++++ package.sh | 11 +++++++++++ 3 files changed, 58 insertions(+) create mode 100644 .github/workflows/package.yml create mode 100644 metadata.json create mode 100755 package.sh diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml new file mode 100644 index 0000000..e82faa3 --- /dev/null +++ b/.github/workflows/package.yml @@ -0,0 +1,16 @@ +name: package +on: + push: + branches: + - master + +jobs: + package: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - run: ./package.sh + - uses: softprops/action-gh-release@v1 + with: + files: package.zip + tag_name: latest diff --git a/metadata.json b/metadata.json new file mode 100644 index 0000000..e371536 --- /dev/null +++ b/metadata.json @@ -0,0 +1,31 @@ +{ + "$schema": "https://go.kicad.org/pcm/schemas/v1", + "name": "Teardrops", + "description": "Manages teardrops on a PCB", + "description_full": "Manages teardrops on a PCB", + "identifier": "com.github.NilujePerchut.kicad-scripts-teardrops", + "type": "plugin", + "author": { + "name": "NilujePerchut", + "contact": { + "web": "https://github.com/NilujePerchut" + } + }, + "maintainer": { + "name": "NilujePerchut", + "contact": { + "web": "https://github.com/NilujePerchut" + } + }, + "license": "BSD-3-Clause", + "resources": { + "homepage": "https://github.com/NilujePerchut/kicad_scripts" + }, + "versions": [ + { + "version": "1.0", + "status": "testing", + "kicad_version": "6.0" + } + ] +} \ No newline at end of file diff --git a/package.sh b/package.sh new file mode 100755 index 0000000..a3343c9 --- /dev/null +++ b/package.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +mkdir package +mkdir package/plugins +cp -r teardrops/* package/plugins +mkdir package/resources +cp teardrops/teardrops.png package/resources/icon.png +cp metadata.json package +cd package +zip -r ../package.zip . +cd .. \ No newline at end of file