Skip to content

Commit

Permalink
Fix artifact upload
Browse files Browse the repository at this point in the history
  • Loading branch information
tpreuschoff committed Feb 26, 2024
1 parent 3b7cd93 commit f5e304f
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ jobs:
steps:
- name: Download repository
uses: actions/checkout@v4
with:
submodules: true

- name: Run ERC
uses: INTI-CMNB/KiBot@v2_k7
Expand All @@ -101,8 +99,6 @@ jobs:
steps:
- name: Download repository
uses: actions/checkout@v4
with:
submodules: true

- name: Run DRC
uses: INTI-CMNB/KiBot@v2_k7
Expand All @@ -129,8 +125,6 @@ jobs:
steps:
- name: Download repository
uses: actions/checkout@v4
with:
submodules: true

- uses: INTI-CMNB/KiBot@v2_k7
with:
Expand Down Expand Up @@ -176,7 +170,7 @@ jobs:
- name: Merge artifacts
run: |
mkdir ./manufacturing_files
mv artifacts/*/* ./manufacturing_files
mv artifacts/* ./manufacturing_files/
shell: bash

- name: Display structure of downloaded files
Expand All @@ -187,7 +181,7 @@ jobs:
- name: Append BOM (bill of materials) as asset
if: github.event.action == 'published'
run: |
mv "./manufacturing_files/bom/bom_(${{ matrix.variant }}).zip" ${{ needs.tests.outputs.basename }}_bom_${{ needs.tests.outputs.revision }}_${{ matrix.variant }}.zip
mv "./manufacturing_files/bom-${{ matrix.variant }}/bom_(${{ matrix.variant }}).zip" ${{ needs.tests.outputs.basename }}_bom_${{ needs.tests.outputs.revision }}_${{ matrix.variant }}.zip
gh release upload ${{ github.ref_name }} ${{ needs.tests.outputs.basename }}_bom_${{ needs.tests.outputs.revision }}_${{ matrix.variant }}.zip#"Bill of materials for the ${{ matrix.variant }} variant (zip)" --repo ${{ github.repository }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -196,7 +190,7 @@ jobs:
- name: Append schematics as asset
if: github.event.action == 'published'
run: |
mv "./manufacturing_files/schematics/schematics_(${{ matrix.variant }}).pdf" ${{ needs.tests.outputs.basename }}_schematics_${{ needs.tests.outputs.revision }}_${{ matrix.variant }}.pdf
mv "./manufacturing_files/schematics-${{ matrix.variant }}/schematics_(${{ matrix.variant }}).pdf" ${{ needs.tests.outputs.basename }}_schematics_${{ needs.tests.outputs.revision }}_${{ matrix.variant }}.pdf
gh release upload ${{ github.ref_name }} ${{ needs.tests.outputs.basename }}_schematics_${{ needs.tests.outputs.revision }}_${{ matrix.variant }}.pdf#"Schematics for the ${{ matrix.variant }} variant (pdf)" --repo ${{ github.repository }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -205,7 +199,7 @@ jobs:
- name: Append position files as asset
if: github.event.action == 'published'
run: |
mv "./manufacturing_files/gerber_files/pos_(${{ matrix.variant }}).zip" ${{ needs.tests.outputs.basename }}_position_${{ needs.tests.outputs.revision }}_${{ matrix.variant }}.zip
mv "./manufacturing_files/gerber_files-${{ matrix.variant }}/pos_(${{ matrix.variant }}).zip" ${{ needs.tests.outputs.basename }}_position_${{ needs.tests.outputs.revision }}_${{ matrix.variant }}.zip
gh release upload ${{ github.ref_name }} ${{ needs.tests.outputs.basename }}_position_${{ needs.tests.outputs.revision }}_${{ matrix.variant }}.zip#"Pick & Place position files for the ${{ matrix.variant }} variant (zip)" --repo ${{ github.repository }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -214,7 +208,7 @@ jobs:
- name: Append Gerber files as asset
if: github.event.action == 'published' && matrix.variant == 'default'
run: |
mv "./manufacturing_files/gerber_files/gerbers.zip" ${{ needs.tests.outputs.basename }}_gerber_${{ needs.tests.outputs.revision }}_all.zip
mv "./manufacturing_files/gerber_files-${{ matrix.variant }}/gerbers.zip" ${{ needs.tests.outputs.basename }}_gerber_${{ needs.tests.outputs.revision }}_all.zip
gh release upload ${{ github.ref_name }} ${{ needs.tests.outputs.basename }}_gerber_${{ needs.tests.outputs.revision }}_all.zip#"Gerber files for all variants (zip)" --repo ${{ github.repository }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit f5e304f

Please sign in to comment.