Skip to content

Upgrade CI to Kicad 9 #11

Upgrade CI to Kicad 9

Upgrade CI to Kicad 9 #11

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_k9
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