openscad-smoke-box/.github/workflows/scad.yml

35 lines
780 B
YAML
Raw Normal View History

name: Deploy To Production
on:
push:
branches:
- main
permissions: read-all
jobs:
render:
runs-on: ubuntu-latest
strategy:
matrix:
part:
- Lid
- Bottom
- Latch
- Seal
steps:
- name: Setup
uses: actions/checkout@v4
- name: Render
run: |
docker run \
-v ${{ github.workspace }}:/workspace/ \
openscad/openscad \
-D View=\"${{ matrix.part }}\" \
-o /workspace/${{ matrix.part }}.stl \
/workspace/smokebox.scad
- name: Upload
uses: actions/upload-artifact@v4
with:
name: smokebox-${{ matrix.part }}.stl
path: ${{ github.workspace }}/${{ matrix.part }}.stl