Skip to content

Commit 12aa5f9

Browse files
authored
add powershell example (#3)
1 parent 456f90d commit 12aa5f9

File tree

3 files changed

+1966
-7
lines changed

3 files changed

+1966
-7
lines changed

.github/workflows/install-kittycad-cli-test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,15 @@ jobs:
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 }}

README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
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
68
on:
79
pull_request:
810
jobs:
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

0 commit comments

Comments
 (0)