9
9
10
10
jobs :
11
11
build :
12
- runs-on : ubuntu-latest
13
- container : ghcr.io/inti-cmnb/kicad8_auto_full:latest
12
+ runs-on : ubuntu-22.04
14
13
15
14
permissions :
16
15
contents : write
@@ -33,10 +32,27 @@ jobs:
33
32
submodules : recursive
34
33
35
34
- name : Dependencies
36
- run : git clone https://github.com/Kampi/KiCad.git library
35
+ run : |
36
+ sudo apt update
37
+
38
+ wget https://github.com/INTI-CMNB/KiBot/releases/download/v1.7.0/kibot_1.7.0-1_all.deb
39
+ sudo apt install ./kibot*_all.deb
40
+
41
+ wget https://github.com/INTI-CMNB/InteractiveHtmlBom/releases/download/v2.9.0-1/interactivehtmlbom.inti-cmnb_2.9.0-1_all.deb
42
+ sudo apt install ./interactivehtmlbom.inti-cmnb*_all.deb
43
+
44
+ wget https://github.com/INTI-CMNB/KiAuto/releases/download/v2.3.2/kiauto_2.3.2-1_all.deb
45
+ sudo apt install ./kiauto*_all.deb
46
+
47
+ sudo add-apt-repository --yes ppa:kicad/kicad-8.0-releases
48
+ sudo apt install --install-recommends kicad
49
+
50
+ git clone https://github.com/Kampi/KiCad.git library
37
51
38
52
- name : Extract branch name
53
+ shell : bash
39
54
run : echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
55
+ id : extract_branch
40
56
41
57
- name : Initialize
42
58
run : |
@@ -54,16 +70,18 @@ jobs:
54
70
uses : actions/upload-artifact@v4
55
71
with :
56
72
name : ${{ matrix.device_type }}
57
- path : production
73
+ path : |
74
+ production
58
75
if-no-files-found : ignore
59
76
60
- - name : Update image
61
- if : ${{ matrix.NewImage && (github.event.pull_request.merged == true) }}
77
+ - if : ${{ matrix.NewImage && (github.event.pull_request.merged == true) }}
78
+ name : Update image
62
79
run : |
63
80
git config --local user.name "github-actions[bot]"
64
81
git config --local user.email "github-actions[bot]@users.noreply.github.com"
65
82
cp production/${{ matrix.device_type }}/docs/images/PCB_Rendering.png docs/images/Image_Complete.png
66
83
git add docs/images/Image_Complete.png
67
84
git commit -m "Add image from CI/CD action"
68
85
git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
86
+ echo https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
69
87
git push origin ${{ github.base_ref }}
0 commit comments