File tree Expand file tree Collapse file tree 3 files changed +1966
-7
lines changed
Expand file tree Collapse file tree 3 files changed +1966
-7
lines changed Original file line number Diff line number Diff line change 1717 run : |
1818 echo "Version from output is: ${{ steps.install-kittycad.outputs.version }}"
1919 kittycad --version
20+
21+ convert-with-powershell :
22+ runs-on : windows-latest
23+ steps :
24+ - uses : actions/checkout@v3
25+ - uses : ./
26+ id : install-kittycad
27+ - name : convert
28+ run : kittycad file convert test-file.obj test-output.stl
29+ shell : powershell
30+ env :
31+ KITTYCAD_API_TOKEN : ${{ secrets.KITTYCAD_API_TOKEN }}
Original file line number Diff line number Diff line change 11### Install KittyCAD CLI
22
3- If you want to use the KittyCAD cli directly in your actions, for example:
3+ Use the KittyCAD CLI in your Github workflows.
4+
5+ Example usage:
46``` yml
5- name : " install KittyCAD cli"
7+ name : Install KittyCAD cli and convert demo
68on :
79 pull_request :
810jobs :
9- my-job :
10- runs-on : ubuntu -latest
11+ convert-with-powershell :
12+ runs-on : windows -latest
1113 steps :
1214 - uses : actions/checkout@v3
13- - uses : KittyCAD/ts-actions/install-kittycad@v0.2.2
14- - name : use KittyCAD cli
15- run : kittycad --version # do things with cli
15+ - uses : KittyCAD/install-cli@v0.0.4
16+ - name : convert
17+ run : kittycad file convert test-file.obj test-output.stl
18+ shell : powershell
1619 env :
1720 KITTYCAD_API_TOKEN : ${{ secrets.KITTYCAD_API_TOKEN }}
1821` ` `
22+
23+ Make sure you [generate your ` KITTYCAD_API_TOKEN`](https://kittycad.io/account) and add it to your repo secrets
You can’t perform that action at this time.
0 commit comments