Increase Test Coverage #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate Manufacture Artifacts | |
on: | |
push: | |
branches: | |
- master | |
- Hardware | |
paths: | |
# Changes on kicad eeschema or board | |
- '**/**.kicad_sch' | |
- '**/**.kicad_pcb' | |
# changes on any yml file | |
- '**/**.yml' | |
- '**/**.yaml' | |
pull_request: | |
paths: | |
# Changes on kicad eeschema or board | |
- '**/**.kicad_sch' | |
- '**/**.kicad_pcb' | |
# changes on any yml file | |
- '**/**.yml' | |
- '**/**.yaml' | |
jobs: | |
KiBotCICD: | |
runs-on: ubuntu-latest | |
env: | |
CI_COMMIT_MESSAGE: Continuous Integration Build Artifacts | |
CI_COMMIT_AUTHOR: Github Actions | |
steps: | |
- name: Checkout Step | |
uses: actions/checkout@v4 | |
- name: KiBot does its thing | |
uses: INTI-CMNB/KiBot@v2_dk7 | |
with: | |
# Required - kibot config file | |
config: ArtifactCreation.kibot.yaml | |
# optional - schematic file | |
schema: 'hardware/LED_Dimmer.kicad_sch' | |
# optional - PCB design file | |
board: 'hardware/LED_Dimmer.kicad_pcb' | |
- name: upload results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Artifacts | |
path: Artifacts | |
# In case we want to SSH into the machine | |
# To exit | |
# sudo /continue | |
# - name: Setup upterm session | |
# uses: lhotari/action-upterm@v1 | |
- name: push changes to repo | |
if: ${{ github.ref == 'refs/heads/master'}} | |
run: | | |
mkdir -p support/img | |
sudo cp Artifacts/BlenderRender/*.png support/img/ | |
git config user.name github-actions | |
git config user.email github-actions@github.com | |
# so far only changes in the support folder need to be pushed back | |
git add support | |
git commit -m "${{ env.CI_COMMIT_MESSAGE }}" | |
git push |