暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

scad.yml 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. name: STLs
  2. # build for each push and pull request
  3. on: [push, pull_request]
  4. jobs:
  5. render:
  6. runs-on: ubuntu-latest
  7. permissions:
  8. contents: write
  9. steps:
  10. - name: Checkout repo
  11. uses: actions/checkout@v4
  12. with:
  13. fetch-depth: 0
  14. - name: Checkout repo submodules
  15. run: git submodule update --init
  16. - name: Install dependencies
  17. run: |
  18. sudo apt update
  19. sudo apt-get install -y openscad zip
  20. - name: Render STLs
  21. run: |
  22. ./3dprint/generate_stls.sh
  23. - name: Upload part files
  24. uses: actions/upload-artifact@v4.0.0
  25. with:
  26. name: drumkit-stl
  27. path: 3dprint/stl
  28. if-no-files-found: error
  29. - name: Archive release files
  30. if: startsWith(github.ref, 'refs/tags/')
  31. run: |
  32. cd 3dprint
  33. zip -r drumkit-stl stl
  34. - name: Upload release files
  35. if: startsWith(github.ref, 'refs/tags/')
  36. uses: softprops/action-gh-release@v1
  37. with:
  38. files: 3dprint/drumkit-stl.zip