Skip to content

Commit 190cae2

Browse files
committed
Merge branch 'release/v0.1.0'
2 parents 866b2b5 + 0b1d10b commit 190cae2

32 files changed

+158110
-64
lines changed

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
*.csv filter=bom_csv
2+
*.html filter=bom_html
3+
*.gbr filter=gerber
4+
*.gbrjob filter=gbrjob
5+
*.xml filter=xml
6+
*.kicad_pcb filter=kicad_pcb_f
7+
*.net filter=net_filter

.gitconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[filter "bom_csv"]
2+
clean = sed -E 's/^BoM Date:.*$/BoM Date:Date/'
3+
smudge = sed -E \"s/BoM Date:Date/BoM Date:,`date +\\\"%a %d %b %Y %X %:::z\\\"`/\"
4+
[filter "bom_html"]
5+
clean = sed -E 's/^<tr><td>BoM Date<\\/td><td>.*$/<tr><td>BoM Date<\\/td><td>Date<\\/td><\\/tr>/'
6+
smudge = sed -E \"s/<tr><td>BoM Date<\\/td><td>Date<\\/td><\\/tr>/<tr><td>BoM Date<\\/td><td>`date +\\\"%a %d %b %Y %X %:::z\\\"`<\\/td><\\/tr>/\"
7+
[filter "gerber"]
8+
clean = sed -E -e 's/^%TF.CreationDate,.*$/%TF.CreationDate,Date%/' -e 's/^G04 Created by KiCad.*$/G04 Created by KiCad*/'
9+
smudge = sed -E \"s/%TF.CreationDate,Date%/%TF.CreationDate,`date +%Y-%m-%dT%H:%M:%S%:z`/\"
10+
[filter "gbrjob"]
11+
clean = sed -E 's/\"CreationDate\":.*/\"CreationDate\": \"Date\"/'
12+
smudge = sed -E \"s/\\\"CreationDate\\\": \\\"Date\\\"/\\\"CreationDate\\\": \\\"`date +%Y-%m-%dT%H:%M:%S%:z`\\\"/\"
13+
[filter "xml"]
14+
clean = sed -E -e 's/^ <date>.*<\\/date>/ <date>Date2<\\/date>/' -e 's/^ <date>.*<\\/date>/ <date>Date1<\\/date>/'
15+
smudge = sed -E -e \"s/<date>Date1<\\/date>/<date>`date +\\\"%a %d %b %Y %X %:::z\\\"`<\\/date>/\" -e \"s/<date>Date2<\\/date>/<date>`date +\\\"%Y-%m-%d\\\"`<\\/date>/\"
16+
[filter "kicad_pcb_f"]
17+
clean = sed -E 's/\\(host pcbnew ([[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+).*/\\(host pcbnew \\1\\)/'
18+
[filter "net_filter"]
19+
clean = sed -E -e 's/\\(date \\\".*\\\"\\)/\\(date \\\"Date\\\"\\)/'
20+
smudge = sed -E -e \"s/\\(date \\\"Date\\\"\\)/\\(date \\\"`date +\\\"%a %d %b %Y %X %:::z\\\"`\\\"\\)/\"
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
on:
2+
push:
3+
tags:
4+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
5+
6+
name: Upload Release
7+
8+
jobs:
9+
build:
10+
name: Upload Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
with:
16+
submodules: recursive
17+
- name: Set version number # Replace [Uncontrolled] with actual tag
18+
env:
19+
GITHUB_REF: ${{ github.ref }}
20+
run: |
21+
sed -i "s~\[Uncontrolled\]~${GITHUB_REF/#refs\/tags\/}~g" Kicad/*.sch Kicad/*.kicad_pcb
22+
- name: Build project # This would actually build your project, using zip for an example artifact
23+
uses: nerdyscout/[email protected]
24+
with:
25+
config: 'Kicad/docs.yml'
26+
dir: docs
27+
schema: 'Kicad/Neotron-Pico.sch'
28+
board: 'Kicad/Neotron-Pico.kicad_pcb'
29+
- name: Create Release
30+
id: create_release
31+
uses: actions/create-release@v1
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
with:
35+
tag_name: ${{ github.ref }}
36+
release_name: Release ${{ github.ref }}
37+
draft: false
38+
prerelease: false
39+
- name: Build zip file
40+
run: |
41+
zip -r --junk-paths neotron-pico-release.zip docs/
42+
- name: Upload Release
43+
id: upload-release-asset
44+
uses: actions/upload-release-asset@v1
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
with:
48+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing its ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
49+
asset_path: ./neotron-pico-release.zip
50+
asset_name: neotron-pico-release.zip
51+
asset_content_type: application/zip

.github/workflows/kicad.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Kicad
2+
3+
on:
4+
push:
5+
paths:
6+
- '**.sch'
7+
- '**.lib'
8+
- '**.kicad_mod'
9+
- '**.kicad_pcb'
10+
pull_request:
11+
paths:
12+
- '**.sch'
13+
- '**.lib'
14+
- '**.kicad_mod'
15+
- '**.kicad_pcb'
16+
17+
jobs:
18+
Kicad:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
with:
23+
submodules: recursive
24+
- uses: nerdyscout/[email protected]
25+
with:
26+
config: 'Kicad/docs.yml'
27+
dir: docs
28+
schema: 'Kicad/neotron-pico.sch'
29+
board: 'Kicad/neotron-pico.kicad_pcb'
30+
- name: upload results
31+
uses: actions/upload-artifact@v2
32+
with:
33+
name: docs
34+
path: docs

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*-bak
2+

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "Neotron-Common-Hardware"]
2-
path = Neotron-Common-Hardware
2+
path = Kicad/Neotron-Common-Hardware
33
url = ../Neotron-Common-Hardware.git

0 commit comments

Comments
 (0)