openscad-smoke-box/.github/workflows/scad.yml
Matthew Baggett 2c0dc52254
Some checks failed
Deploy To Production / render (Bottom) (push) Failing after 3s
Deploy To Production / render (Latch) (push) Failing after 3s
Deploy To Production / render (Lid) (push) Failing after 3s
Deploy To Production / render (Seal) (push) Failing after 2s
Setup docker...
2024-07-31 11:46:07 +02:00

37 lines
905 B
YAML

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