Skip to content

Commit

Permalink
Merge pull request #1 from WillB97/rev_c
Browse files Browse the repository at this point in the history
Revision C
  • Loading branch information
WillB97 authored Nov 17, 2024
2 parents 4575871 + feb4f3d commit 5e3ffde
Show file tree
Hide file tree
Showing 11 changed files with 87,088 additions and 48,199 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/kibot_action_quick_start.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: "KiBot action using quick-start"

# Controls when the action will run. Triggers the workflow on push or manual event
on:
- push
- workflow_dispatch

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
quick:
name: "Quick Start (action)"
runs-on: ubuntu-latest

steps:
- name: Get repo
uses: actions/checkout@v4
with:
# So we can run a diff between last 2 changes
fetch-depth: '0'

- name: Setup Pages
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/configure-pages@v5

- name: Run KiBot
uses: INTI-CMNB/KiBot@v2_k8
with:
quickstart: YES

- name: Upload results
uses: actions/upload-artifact@v4
with:
name: Automatic_outputs
path: Generated

- name: Upload artifact
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
# Upload generated files
path: 'Generated'

deploy:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: quick
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@
*.kicad_prl
*.sch-bak
*~
~*.lck
*_autosave-*
*.tmp
*-save.pro
*-save.kicad_pcb
fp-info-cache
fp-lib-table
\#auto_saved_files\#
sym-lib-table

# Netlist files (exported from Eeschema)
*.net
Expand All @@ -33,3 +37,7 @@ fp-info-cache

pcb/jlcpcb/gerber
pcb/jlcpcb/assembly
pcb/production
pcb/bom
pcb/KCH_panel.kicad*
pcb/fabrication-toolkit-options.json
Loading

0 comments on commit 5e3ffde

Please sign in to comment.