# SPDX-FileCopyrightText: 2024 Thomas Buck # SPDX-License-Identifier: CERN-OHL-S-2.0+ # # ------------------------------------------------------------------------------ # | Copyright (c) 2024 Thomas Buck | # | | # | This source describes Open Hardware and is licensed under the CERN-OHL-S v2 | # | or any later version. | # | | # | You may redistribute and modify this source and make products using it under | # | the terms of the CERN-OHL-S v2 (https://ohwr.org/cern_ohl_s_v2.txt) | # | or any later version. | # | | # | This source is distributed WITHOUT ANY EXPRESS OR IMPLIED WARRANTY, | # | INCLUDING OF MERCHANTABILITY, SATISFACTORY QUALITY AND FITNESS FOR A | # | PARTICULAR PURPOSE. Please see the CERN-OHL-S v2 (or any later version) | # | for applicable conditions. | # | | # | Source location: https://git.xythobuz.de/thomas/drumkit | # | | # | As per CERN-OHL-S v2 section 4, should You produce hardware based on this | # | source, You must where practicable maintain the Source Location visible | # | on the external case of the Gizmo or other products you make using this | # | source. | # ------------------------------------------------------------------------------ name: STLs # build for each push and pull request on: [push, pull_request] jobs: render: runs-on: ubuntu-latest permissions: contents: write steps: - name: Checkout repo uses: actions/checkout@v4 with: fetch-depth: 0 - name: Checkout repo submodules run: git submodule update --init - name: Install dependencies run: | sudo apt update sudo apt-get install -y openscad zip - name: Render STLs run: | ./3dprint/generate_stls.sh - name: Upload part files uses: actions/upload-artifact@v4.0.0 with: name: drumkit-stl path: 3dprint/stl if-no-files-found: error - name: Archive release files if: startsWith(github.ref, 'refs/tags/') run: | cd 3dprint zip -r drumkit-stl stl - name: Upload release files if: startsWith(github.ref, 'refs/tags/') uses: softprops/action-gh-release@v1 with: files: 3dprint/drumkit-stl.zip