-
Notifications
You must be signed in to change notification settings - Fork 2
72 lines (55 loc) · 1.54 KB
/
publish.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
68
69
name: PublishScriptSync
# TODO: switch to this one
# on:
# release:
# types: [published]
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build_yak:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Python setup
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install invoke
- name: Install .NET Framework 4.8
uses: microsoft/[email protected]
- name: Run Invoke tasks
run: invoke yakerize
- name: Save artifact
uses: actions/upload-artifact@v2
with:
name: scriptsync_yak_package
path: yaker\build\*.yak
publish_yak:
needs: build_yak
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: List directory contents
run: dir
working-directory: yaker\build
- name: Publish to Yak test server
run: |
$YAK_FILE=$(ls *.yak)
echo "Yak file: $YAK_FILE"
..\exec\Yak.exe push --source https://test.yak.rhino3d.com $YAK_FILE
working-directory: yaker\build
env:
YAK_TOKEN: ${{ secrets.YAK_IBOIS_TOKEN }}
- name: Verify the Yak package
run: |
$NAME_PACKAGE=$(script-sync)
..\exec\Yak.exe search --source https://test.yak.rhino3d.com --all --prerelease $NAME_PACKAGE
working-directory: yaker\build
env:
YAK_TOKEN: ${{ secrets.YAK_IBOIS_TOKEN }}