Skip to content

Commit adbbd11

Browse files
committed
CAP: working CI
1 parent bf4e882 commit adbbd11

File tree

2 files changed

+96
-103
lines changed

2 files changed

+96
-103
lines changed

.github/workflows/publish.yml

Lines changed: 95 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
name: PublishScriptSync
22

3-
# FIXME: bring back when ready
43
on:
54
release:
65
types: [published]
76

8-
# on:
9-
# push:
10-
# branches: [ main ]
11-
# pull_request:
12-
# branches: [ main ]
13-
147
jobs:
158
########################### yak ############################
169
build_yak:
@@ -42,53 +35,53 @@ jobs:
4235
name: scriptsync_yak_package
4336
path: yaker\build\*.yak
4437

45-
# publish_yak:
46-
# needs: build_yak
47-
# runs-on: windows-latest
38+
publish_yak:
39+
needs: build_yak
40+
runs-on: windows-latest
4841

49-
# steps:
50-
# - uses: actions/checkout@v2
42+
steps:
43+
- uses: actions/checkout@v2
5144

52-
# - name: Download artifact
53-
# uses: actions/download-artifact@v2
54-
# with:
55-
# name: scriptsync_yak_package
56-
# path: yaker\build
45+
- name: Download artifact
46+
uses: actions/download-artifact@v2
47+
with:
48+
name: scriptsync_yak_package
49+
path: yaker\build
5750

58-
# # before run this get a token from your local machine with `yak.exe login --ci`
59-
# # # this is a dummy test
60-
# # - name: Publish to Yak test server
61-
# # run: |
62-
# # $YAK_FILE=$(ls *.yak)
63-
# # echo "Yak file: $YAK_FILE"
64-
# # ..\exec\Yak.exe push --source https://test.yak.rhino3d.com $YAK_FILE
65-
# # working-directory: yaker\build
66-
# # env:
67-
# # YAK_TOKEN: ${{ secrets.YAK_IBOIS_TOKEN }}
68-
# # continue-on-error: true
69-
# # # this is also a dummy test
70-
# # - name: Verify the Yak test package
71-
# # run: |
72-
# # ..\exec\Yak.exe search --source https://test.yak.rhino3d.com --all --prerelease script-sync
73-
# # working-directory: yaker\build
74-
# # env:
75-
# # YAK_TOKEN: ${{ secrets.YAK_IBOIS_TOKEN }}
76-
# # real release
77-
# - name: Publish to Yak test server
78-
# run: |
79-
# $YAK_FILE=$(ls *.yak)
80-
# echo "Yak file: $YAK_FILE"
81-
# ..\exec\Yak.exe push $YAK_FILE
82-
# working-directory: yaker\build
83-
# env:
84-
# YAK_TOKEN: ${{ secrets.YAK_IBOIS_TOKEN }}
85-
# # check the real release
86-
# - name: Verify the Yak test package
87-
# run: |
88-
# ..\exec\Yak.exe search --all --prerelease script-sync
89-
# working-directory: yaker\build
90-
# env:
91-
# YAK_TOKEN: ${{ secrets.YAK_IBOIS_TOKEN }}
51+
# before run this get a token from your local machine with `yak.exe login --ci`
52+
# # this is a dummy test
53+
# - name: Publish to Yak test server
54+
# run: |
55+
# $YAK_FILE=$(ls *.yak)
56+
# echo "Yak file: $YAK_FILE"
57+
# ..\exec\Yak.exe push --source https://test.yak.rhino3d.com $YAK_FILE
58+
# working-directory: yaker\build
59+
# env:
60+
# YAK_TOKEN: ${{ secrets.YAK_IBOIS_TOKEN }}
61+
# continue-on-error: true
62+
# # this is also a dummy test
63+
# - name: Verify the Yak test package
64+
# run: |
65+
# ..\exec\Yak.exe search --source https://test.yak.rhino3d.com --all --prerelease script-sync
66+
# working-directory: yaker\build
67+
# env:
68+
# YAK_TOKEN: ${{ secrets.YAK_IBOIS_TOKEN }}
69+
# real release
70+
- name: Publish to Yak test server
71+
run: |
72+
$YAK_FILE=$(ls *.yak)
73+
echo "Yak file: $YAK_FILE"
74+
..\exec\Yak.exe push $YAK_FILE
75+
working-directory: yaker\build
76+
env:
77+
YAK_TOKEN: ${{ secrets.YAK_IBOIS_TOKEN }}
78+
# check the real release
79+
- name: Verify the Yak test package
80+
run: |
81+
..\exec\Yak.exe search --all --prerelease script-sync
82+
working-directory: yaker\build
83+
env:
84+
YAK_TOKEN: ${{ secrets.YAK_IBOIS_TOKEN }}
9285

9386
########################### vsix ############################
9487
build_vsix:
@@ -131,57 +124,57 @@ jobs:
131124
name: script-sync-vsix
132125
path: VSCode/scriptsync/*.vsix
133126

134-
# publish_vsix:
135-
# needs: build_vsix
136-
# runs-on: windows-latest
137-
138-
# steps:
139-
# - uses: actions/checkout@v2
140-
141-
# - name: Setup Node.js environment
142-
# uses: actions/setup-node@v2
143-
# with:
144-
# node-version: '14'
145-
146-
# - name: Python setup
147-
# uses: actions/setup-python@v2
148-
# with:
149-
# python-version: '3.x'
150-
151-
# - name: Install pip and invoke
152-
# run: |
153-
# python -m pip install --upgrade pip
154-
# pip install invoke
155-
156-
# - name: Sync version
157-
# run: invoke syncv
158-
159-
# - name: Install VSCE
160-
# run: npm install -g vsce
161-
162-
# - name: Install TypeScript
163-
# run: npm install -g typescript
164-
165-
# - name: Install dependencies
166-
# run: |
167-
# npm install
168-
# npm install @types/vscode
169-
# npm install @types/mocha --save-dev # Replace this line
170-
171-
# - name: Download artifact
172-
# uses: actions/download-artifact@v2
173-
# with:
174-
# name: script-sync-vsix
175-
# path: VSCode\scriptsync
176-
177-
# - name: Publish to VSCode Marketplace
178-
# run: |
179-
# vsce publish -p ${{ secrets.AZURE_OP_TOKEN }}
180-
# working-directory: .\VSCode\scriptsync
181-
182-
# - name: Verify the VSCode Marketplace package
183-
# run: |
184-
# vsce show ibois-epfl.script-sync
127+
publish_vsix:
128+
needs: build_vsix
129+
runs-on: windows-latest
130+
131+
steps:
132+
- uses: actions/checkout@v2
133+
134+
- name: Setup Node.js environment
135+
uses: actions/setup-node@v2
136+
with:
137+
node-version: '14'
138+
139+
- name: Python setup
140+
uses: actions/setup-python@v2
141+
with:
142+
python-version: '3.x'
143+
144+
- name: Install pip and invoke
145+
run: |
146+
python -m pip install --upgrade pip
147+
pip install invoke
148+
149+
- name: Sync version
150+
run: invoke syncv
151+
152+
- name: Install VSCE
153+
run: npm install -g vsce
154+
155+
- name: Install TypeScript
156+
run: npm install -g typescript
157+
158+
- name: Install dependencies
159+
run: |
160+
npm install
161+
npm install @types/vscode
162+
npm install @types/mocha --save-dev # Replace this line
163+
164+
- name: Download artifact
165+
uses: actions/download-artifact@v2
166+
with:
167+
name: script-sync-vsix
168+
path: VSCode\scriptsync
169+
170+
- name: Publish to VSCode Marketplace
171+
run: |
172+
vsce publish -p ${{ secrets.AZURE_OP_TOKEN }}
173+
working-directory: .\VSCode\scriptsync
174+
175+
- name: Verify the VSCode Marketplace package
176+
run: |
177+
vsce show ibois-epfl.script-sync
185178
186179
########################### release artifacts ############################
187180
release_artifacts:

manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: script-sync
3-
version: 1.1.19
3+
version: 1.1.20
44
authors:
55
- Andrea Settimi
66
description: Script-sync is a Rhino plug-in to run C# and Python (IronPython or CPython) in RhinoV8.

0 commit comments

Comments
 (0)