forked from mlab-modules/GPS02
-
Notifications
You must be signed in to change notification settings - Fork 9
67 lines (61 loc) · 1.52 KB
/
slicing.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Slicing
on:
push:
paths:
- '**.stl'
- '**.amf'
- '**.STL'
- '**.AMF'
- '**.scad'
- '**.SCAD'
workflow_dispatch:
jobs:
render:
runs-on: ubuntu-latest
name: "Renderování STL"
env:
source: 'hw/cad/**.scad'
destination: 'out/hw/cad/stl'
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Slicovani
uses: roman-dvorak/Slice@render
- name: Artifact
uses: actions/upload-artifact@v2.2.1
with:
name: "Out_render"
path: "out"
slice:
runs-on: ubuntu-latest
needs: render
name: "Slicování"
env:
folders: 'hw/cad/stl/printplate'
default_ini: 'hw/cad/slicing/default.ini'
strategy:
matrix:
printer: ['3d']
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Slicovani pro ${{ matrix.printer }}
uses: roman-dvorak/Slice@master
with:
printer: ${{ matrix.printer }}
folders: "${{ env.folders }}"
default_ini: ${{ env.default_ini }}
- name: Upload
uses: plocket/push-generated-file@master
with:
source_file_path: "out"
destination_repo: "ThunderFly-aerospace/gcodes"
target_branch: TFGPS01/TFGPS01A/${{ matrix.printer }}
token: ${{ secrets.API_TOKEN_GITHUB }}
- name: Artifact
uses: actions/upload-artifact@v2.2.1
with:
name: "Out_slice"
path: "out"