Skip to content

Commit

Permalink
add packaging script + ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ottojo authored and NilujePerchut committed Oct 22, 2022
1 parent 41c055d commit 1087960
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -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
31 changes: 31 additions & 0 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
11 changes: 11 additions & 0 deletions package.sh
Original file line number Diff line number Diff line change
@@ -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 ..

0 comments on commit 1087960

Please sign in to comment.