bottle-clip/.forgejo/workflows/stl.yaml
2025-05-04 16:24:02 +02:00

49 lines
1.1 KiB
YAML

name: Create STL
on:
workflow_dispatch:
inputs:
label:
description: 'Your name'
default: 'Zero Cool'
required: true
type: string
icon:
description: 'Little icon above the label'
type: choice
required: false
options:
- thing-logos/glider.dxf
- thing-logos/camprocket.dxf
- thing-logos/Club_mate_logo.dxf
- thing-logos/chaosknoten.dxf
jobs:
openscad:
runs-on: docker
container:
image: alpine:latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install depdencies
run: apk add openscad envsubst
- name: Generate OpenSCAD file
run: envsubst -i ci-template.scad > ci.scad
env:
LABEL: "${{ inputs.label }}"
ICON: "${{ inputs.icon }}"
- name: Render to STL
run: openscad ci.scad --export-format binstl -o ci.stl ci.scad
- uses: actions/upload-artifact@v4
with:
name: bottle-clip.stl
path: ci.stl
overwrite: true