From 17827cd8b2e3c0818fff75b2374cc6631fac11cf Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 9 Jan 2026 22:31:34 +0000 Subject: [PATCH 1/2] stl build workflow --- .github/workflows/build-stl.yml | 60 +++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/build-stl.yml diff --git a/.github/workflows/build-stl.yml b/.github/workflows/build-stl.yml new file mode 100644 index 0000000..42dcb2f --- /dev/null +++ b/.github/workflows/build-stl.yml @@ -0,0 +1,60 @@ +name: Build OpenSCAD STLs and GIFs +on: + push: + branches: [ main ] + tags: + - 'v*' + pull_request: + branches: [ main ] +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install OpenSCAD + run: | + sudo apt-get update + sudo apt-get install -y openscad + + - name: Verify OpenSCAD install + run: | + which openscad + openscad --version + + - name: Setup Python + uses: actions/setup-python@v6 + with: + python-version: '3.13' + + - name: Build NANO rack + run: python rbuild.py -b all -c nano + + - name: Build MINI rack + run: python rbuild.py -b all -c mini + + - name: Build MICRO rack + run: python rbuild.py -b all -c micro + + - name: Create STL archive + run: | + cd stl + zip -r ../rackstack-stl.zip . + cd .. + + - name: Upload STL artifacts + uses: actions/upload-artifact@v4 + with: + name: rackstack-stl + path: stl/ + + - name: Create Release + if: startsWith(github.ref, 'refs/tags/') + uses: softprops/action-gh-release@v1 + with: + files: rackstack-stl.zip + draft: false + prerelease: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 1e33d7357f3c70fa573552ebf0018c7b737d70c1 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 9 Jan 2026 23:38:48 +0000 Subject: [PATCH 2/2] Update build-stl.yml --- .github/workflows/build-stl.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-stl.yml b/.github/workflows/build-stl.yml index 42dcb2f..d01800c 100644 --- a/.github/workflows/build-stl.yml +++ b/.github/workflows/build-stl.yml @@ -1,4 +1,4 @@ -name: Build OpenSCAD STLs and GIFs +name: Build OpenSCAD STLs on: push: branches: [ main ]