π§ MCAD B11 Manufacturing #11
This file contains hidden or 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: π§ MCAD B11 Manufacturing | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| export-mcad: | |
| name: π B11 (${{ matrix.profile }} profile, ${{ matrix.columns }} col) | |
| permissions: | |
| contents: read | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| # List_xrEfmODFsfiBE6: switch profile parameter ID in the B11 OnShape part studio | |
| # List_kw1ECqDsNAkjBg: number of columns parameter ID in the B11 OnShape part studio | |
| - profile: Normal | |
| columns: 5 | |
| onshape_configuration: "List_xrEfmODFsfiBE6=Default,List_kw1ECqDsNAkjBg=Default" | |
| - profile: Normal | |
| columns: 6 | |
| onshape_configuration: "List_xrEfmODFsfiBE6=Default,List_kw1ECqDsNAkjBg=_6" | |
| - profile: Low | |
| columns: 5 | |
| onshape_configuration: "List_xrEfmODFsfiBE6=Low_profile,List_kw1ECqDsNAkjBg=Default" | |
| - profile: Low | |
| columns: 6 | |
| onshape_configuration: "List_xrEfmODFsfiBE6=Low_profile,List_kw1ECqDsNAkjBg=_6" | |
| uses: ./.github/workflows/mcad-export.yaml | |
| with: | |
| parts_file: hardware/b11/mcad/parts.yaml | |
| onshape_configuration: ${{ matrix.onshape_configuration }} | |
| artifact_suffix: b11-${{ matrix.profile }}-${{ matrix.columns }}col | |
| secrets: inherit | |
| release: | |
| name: π Create Release | |
| needs: export-mcad | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Download all MCAD artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| pattern: mcad-* | |
| path: release-assets | |
| merge-multiple: false | |
| - name: Package artifacts into collection zips | |
| run: | | |
| for dir in release-assets/mcad-*/; do | |
| name=$(basename "$dir") | |
| (cd "$dir" && zip -r "../${name}.zip" .) | |
| done | |
| - name: Create GitHub Release | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| GH_REPO: ${{ github.repository }} | |
| run: | | |
| TAG="mcad-b11-$(date -u +'%Y%m%d%H%M%S')-${{ github.run_number }}" | |
| gh release create "$TAG" \ | |
| --title "MCAD B11 Export β run #${{ github.run_number }}" \ | |
| --notes "Automated MCAD export of B11 STEP and STL files (run #${{ github.run_number }}, commit \`${{ github.sha }}\`)." \ | |
| release-assets/*.zip |