Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 5 additions & 84 deletions .github/workflows/create-debug-docs.yaml
Original file line number Diff line number Diff line change
@@ -1,90 +1,11 @@
name: Create Production Data For Beta Version
name: Create Debug Docs
on:
workflow_dispatch:
push:
branches:
- 'main'

branches: [main]
permissions:
contents: write

jobs:
export-ecad:
name: Export ECAD
runs-on: ubuntu-24.04

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Update the PCBs with the BETA and git hash
run: |
export COMMIT=$(git rev-parse --short HEAD)
echo "COMMIT = ${COMMIT}"
sed -i "s/<<HASH>>/BETA-${COMMIT}/g" *.kicad_*

- name: Generate Export Files
uses: INTI-CMNB/KiBot@v2_k9
with:
config: production.kibot.yaml
dir: output
schema: main.kicad_sch
board: main.kicad_pcb
verbose: 0

- name: Fix output directory permissions
run: sudo chmod -R a+w output/

- name: Generate Stencil PNG
run: |
pip install -r scripts/requirements.txt
python3 scripts/make_stencil_image.py \
output/main-stencil_top.svg \
output/main-stencil_top.png

- name: Upload Export Files as Artifacts
uses: actions/upload-artifact@v4
with:
name: production
path: output
if-no-files-found: error


collect-and-provide:
runs-on: ubuntu-24.04
needs: export-ecad
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
bundler-cache: true
cache-version: 0

- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
with:
generator_config_file: doc

- name: Build with Jekyll
run: cd doc && bundle exec jekyll build
env:
JEKYLL_ENV: production

- uses: actions/download-artifact@v5
with:
name: production
path: doc/_site

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: doc/_site
target-folder: ${{ env.DEPLOY_PATH }}
clean: true
build:
uses: OE5XRX/HW-Module-CI/.github/workflows/create-debug-docs.yaml@main
secrets: inherit
74 changes: 4 additions & 70 deletions .github/workflows/create-release-docs.yaml
Original file line number Diff line number Diff line change
@@ -1,75 +1,9 @@
name: Create Production Data For Release Version
name: Create Release Docs
on:
workflow_dispatch:
release:
types: [published]

jobs:
export-ecad:
name: Export ECAD
runs-on: ubuntu-24.04

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Update the PCBs with the BETA and git hash
run: |
export COMMIT=$(git rev-parse --short HEAD)
echo "COMMIT = ${COMMIT}"
sed -i "s/<<HASH>>/${GITHUB_REF_NAME}-${COMMIT}/g" *.kicad_*

# kibot -c production.kibot.yaml -b main.kicad_pcb -e main.kicad_sch -d output
- name: Generate Export Files
uses: INTI-CMNB/KiBot@v2_k9
with:
config: production.kibot.yaml
dir: output
schema: main.kicad_sch
board: main.kicad_pcb
verbose: 0

- name: Fix output directory permissions
run: sudo chmod -R a+w output/

- name: Generate Stencil PNG
run: |
pip install -r scripts/requirements.txt
python3 scripts/make_stencil_image.py \
output/main-stencil_top.svg \
output/main-stencil_top.png

- name: copy doc files to output folder
run: sudo cp doc/* output/

- name: Upload Export Files as Artifacts
uses: actions/upload-artifact@v4
with:
name: production
path: output
if-no-files-found: error

- name: Generate Parts on InvenTree Server
env:
INVENTREE_API_TOKEN: ${{ secrets.INVENTREE_API_TOKEN }}
INVENTREE_API_HOST: ${{ secrets.INVENTREE_API_HOST }}
MOUSER_API_KEY: ${{ secrets.MOUSER_API_KEY }}
run: |
pip install -r scripts/requirements.txt
python3 scripts/bom_export.py \
--csv_file output/*-bom.csv \
--name "${{ github.event.repository.name }}" \
--version "${{ github.ref_name }}" \
--pcb_image output/*-3D_top-without.png \
--assembly_image output/*-3D_top-with.png \
--stencil_image output/*-stencil_top.png

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.DEPLOY_GH_TOKEN }}
repository-name: OE5XRX/OE5XRX.github.io
branch: main
folder: output
target-folder: docs/remote-station/hardware/${{ github.event.repository.name }}
clean: true
build:
uses: OE5XRX/HW-Module-CI/.github/workflows/create-release-docs.yaml@main
secrets: inherit
27 changes: 6 additions & 21 deletions .github/workflows/kibot-check.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,11 @@
name: Kibot check
name: KiBot Check
on:
workflow_dispatch:
pull_request:
branches:
- 'main'
branches: [main]
push:
branches:
- 'main'

branches: [main]
jobs:
kibot_check:
name: Check with Kibot
runs-on: ubuntu-24.04

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: check KiCad files
uses: INTI-CMNB/KiBot@v2_k9
with:
config: test.kibot.yaml
dir: output
schema: main.kicad_sch
verbose: 0
check:
uses: OE5XRX/HW-Module-CI/.github/workflows/kibot-check.yaml@main
secrets: inherit
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ Thumbs.db
# Python cache (if scripts are used)
__pycache__/
*.pyc

# Generated by HW-Module-CI at runtime (must never be committed)
doc/_data/project.yml
Loading
Loading