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@v3 - name: Setup Docker Builder uses: benzine-framework/action-setup-docker@v1 - name: Render run: | docker run \ -v ${{ github.workspace }}:/workspace/ \ openscad/openscad:dev \ openscad \ -D View=\"${{ matrix.part }}\" \ -o /workspace/${{ matrix.part }}.stl \ /workspace/smokebox.scad - name: Upload uses: actions/upload-artifact@v3 with: name: smokebox-${{ matrix.part }}.stl path: ${{ github.workspace }}/${{ matrix.part }}.stl