-
Notifications
You must be signed in to change notification settings - Fork 15
36 lines (29 loc) · 1.14 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#disabled the stl conversion for now, will nee a bit of improvement before being completly usable (adding the files to the repo, not trigerring on every push but simply on ones that contain scad files )
# This is a basic workflow that is manually triggered
name: Draft Release
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
push:
branches: main
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "greet"
build:
# The type of runner that the job will run on
runs-on: ubuntu-20.04
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2
- name: Download OpenSCAD
run: sudo apt-get install -y openscad
- name: Convert Files
run: |
mkdir dist
for file in ./parts/SCAD/*; do openscad -o "./dist/$(basename $file .scad).stl" "$file"; done
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
path: |
./parts/STEP/*
./dist/*