Skip to content

Commit 28b35cf

Browse files
committed
Merge branch 'release/v0.11.0'
2 parents d405d54 + 394a535 commit 28b35cf

27 files changed

+93911
-9803
lines changed

.github/workflows/kicad-release.yml

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,23 @@ jobs:
1212
steps:
1313
- name: Checkout code
1414
uses: actions/checkout@v2
15-
- name: Set version number # Replace [Uncontrolled] with actual tag
15+
with:
16+
submodules: recursive
17+
- name: Get Branch Name
18+
id: branch_name
19+
run: |
20+
echo ::set-output name=SOURCE_NAME::${GITHUB_REF#refs/*/}
21+
echo ::set-output name=SOURCE_BRANCH::${GITHUB_REF#refs/heads/}
22+
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
23+
- name: Set version number
1624
env:
17-
GITHUB_REF: ${{ github.ref }}
25+
SOURCE_TAG: ${{ steps.branch_name.outputs.SOURCE_TAG }}
1826
run: |
19-
sed -i "s~\[Uncontrolled\]~${GITHUB_REF/#refs\/tags\/}~g" Kicad/*.sch Kicad/*.kicad_pcb
20-
- name: Build project # This would actually build your project, using zip for an example artifact
21-
uses: nerdyscout/kicad-exports@v2.2
27+
sed -i "s~\[Uncontrolled\]~${SOURCE_TAG}~g" Kicad/*.sch Kicad/*.kicad_pcb
28+
- name: Build project
29+
uses: nerdyscout/kicad-exports@v2.3
2230
with:
23-
config: 'Kicad/docs.yml'
31+
config: 'Kicad/docs.kibot.yaml'
2432
dir: docs
2533
schema: 'Kicad/Neotron-Common-Hardware.sch'
2634
board: 'Kicad/Neotron-Common-Hardware.kicad_pcb'
@@ -31,19 +39,19 @@ jobs:
3139
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3240
with:
3341
tag_name: ${{ github.ref }}
34-
release_name: Release ${{ github.ref }}
42+
release_name: Release ${{ steps.branch_name.outputs.SOURCE_TAG }}
3543
draft: false
3644
prerelease: false
37-
- name: Build zip file
45+
- name: Build gerbers zip file
46+
env:
47+
SOURCE_TAG: ${{ steps.branch_name.outputs.SOURCE_TAG }}
3848
run: |
39-
zip -r --junk-paths neotron-common-hardware-release.zip docs/
40-
- name: Upload Release
41-
id: upload-release-asset
42-
uses: actions/upload-release-asset@v1
49+
zip -r --junk-paths neotron-common-hardware-gerbers-${SOURCE_TAG}.zip docs/gerbers/
50+
- name: Upload files to Release
51+
uses: softprops/action-gh-release@v1
52+
with:
53+
files: |
54+
neotron-common-hardware-gerbers-*.zip
55+
docs/*
4356
env:
4457
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45-
with:
46-
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
47-
asset_path: ./neotron-common-hardware-release.zip
48-
asset_name: neotron-common-hardware-release.zip
49-
asset_content_type: application/zip

.github/workflows/kicad.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,23 @@ jobs:
1818
Kicad:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v2
22-
- uses: nerdyscout/kicad-exports@v2.2
21+
- name: Checkout
22+
uses: actions/checkout@v2
2323
with:
24-
config: 'Kicad/docs.yml'
24+
submodules: recursive
25+
- name: Set version number
26+
env:
27+
GITHUB_SHA: ${{ github.sha }}
28+
run: |
29+
sed -i "s~\[Uncontrolled\]~${GITHUB_SHA:0:6}~g" Kicad/*.sch Kicad/*.kicad_pcb
30+
- name: Run KiBot
31+
uses: nerdyscout/[email protected]
32+
with:
33+
config: 'Kicad/docs.kibot.yaml'
2534
dir: docs
2635
schema: 'Kicad/Neotron-Common-Hardware.sch'
2736
board: 'Kicad/Neotron-Common-Hardware.kicad_pcb'
28-
- name: upload results
37+
- name: Upload Results
2938
uses: actions/upload-artifact@v2
3039
with:
3140
name: docs

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
* None
66

7+
## v0.11.0
8+
9+
* Added Expansion Edge connector for making expansion cards.
10+
711
## v0.10.0
812

913
* SYS_RESET is pulled down.

0 commit comments

Comments
 (0)