Skip to content

Commit

Permalink
Attempt to get github actions creating releases again
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Krall committed Sep 17, 2023
1 parent e424b28 commit 009d8d3
Showing 1 changed file with 28 additions and 14 deletions.
42 changes: 28 additions & 14 deletions .github/workflows/kibot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,7 @@ name: KiBot
on:
workflow_dispatch:
push:
paths:
- "*.kicad_sch"
- "*.kicad_pcb"
- "*.kicad_pro"
- "**/*kibot.yml"
pull_request:
paths:
- "*.kicad_sch"
- "*.kicad_pcb"
- "*.kicad_pro"
- "**/*kibot.yml"

env:
schema: "pipad.kicad_sch"
Expand Down Expand Up @@ -47,7 +37,7 @@ jobs:
# documentation
docs:
runs-on: ubuntu-latest
needs: [ERC]
# needs: [ERC]
container:
image: setsoft/kicad_auto:ki7
steps:
Expand All @@ -68,7 +58,7 @@ jobs:
# fabrications
gerbers:
runs-on: ubuntu-latest
needs: [DRC]
# needs: [DRC]
container:
image: setsoft/kicad_auto:ki7
steps:
Expand All @@ -89,7 +79,7 @@ jobs:
# cad
cad:
runs-on: ubuntu-latest
needs: [DRC]
# needs: [DRC]
container:
image: setsoft/kicad_auto:ki7
steps:
Expand All @@ -110,7 +100,7 @@ jobs:
# images
render:
runs-on: ubuntu-latest
needs: [DRC]
# needs: [DRC]
container:
image: setsoft/kicad_auto:ki7
steps:
Expand All @@ -128,3 +118,27 @@ jobs:
${{env.dir}}/img/**
!${{env.dir}}/**/*.ogv
!${{env.dir}}/**/*.log
release:
needs: [render, gerbers, cad, docs, DRC, ERC]
runs-on: ubuntu-latest
steps:
- name: download all artifacts
uses: actions/download-artifact@v3.0.2
- name: find .
run: find .
- name: tarballs
run: for dir in pipad_{docs,cad,gerbers,img}; do tar czf "${dir}.tgz" "${dir}"; done
- name: create release
uses: softprops/action-gh-release@v1
with:
name: Release ${{ github.run_id }} (${{ github.sha }})
tag_name: v${{ github.run_id }}
target_commitish: ${{ github.ref }}
files: |
pipad_cad.tgz
pipad_docs.tgz
pipad_gerbers.tgz
pipad_img.tgz
fail_on_unmatched_files: true

0 comments on commit 009d8d3

Please sign in to comment.