-
Notifications
You must be signed in to change notification settings - Fork 1
126 lines (97 loc) · 3.83 KB
/
pre-release-robocorp-code.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
on:
workflow_dispatch:
inputs:
version:
description: "Version"
required: true
name: Pre-release - Sema4.ai Extension
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./sema4ai
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Yarn install
run: yarn install
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install deps
run: pip install --upgrade pip fire poetry
- name: Update version
run: python -m dev set-version ${{ github.event.inputs.version }}
- name: Update vscode required version and other codegen deps
run: python -m dev codegen
env:
PYTHONPATH: src
- name: Vendor sema4ai_ls_core
run: python -m dev vendor-robocorp-ls-core
- name: Fix README references
run: python -m dev fix-readme
- name: Generate LICENSE.md
run: python -m dev generate-license-file
- name: Install locally
working-directory: ./sema4ai
run: poetry install
- run: npm install -g vsce@2.15.0
# Platforms: win32-x64, win32-ia32, win32-arm64, linux-x64, linux-arm64, linux-armhf, alpine-x64, alpine-arm64, darwin-x64, darwin-arm64 and web.
# Deal with Windows --------------
- name: Download rcc for windows
run: python -m dev download-rcc win32
- run: vsce package --pre-release --target win32-x64 -o sema4ai-win32-x64.vsix
- uses: actions/upload-artifact@v4
with:
name: sema4ai-win32-x64.vsix
path: ./sema4ai/sema4ai-win32-x64.vsix
- name: Publish pre-release to vscode marketplace
run: vsce publish --packagePath ./sema4ai-win32-x64.vsix -p $VSCODE_VSCE_TOKEN --pre-release
env:
VSCODE_VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}
# Deal with Linux --------------
- name: Download rcc for linux
run: python -m dev download-rcc linux
- run: vsce package --pre-release --target linux-x64 -o sema4ai-linux-x64.vsix
- uses: actions/upload-artifact@v4
with:
name: sema4ai-linux-x64.vsix
path: ./sema4ai/sema4ai-linux-x64.vsix
- name: Publish pre-release to vscode marketplace
run: vsce publish --packagePath ./sema4ai-linux-x64.vsix -p $VSCODE_VSCE_TOKEN --pre-release
env:
VSCODE_VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}
# Deal with Darwin x64 --------------
- name: Download rcc for darwin
run: python -m dev download-rcc darwin
- run: vsce package --pre-release --target darwin-x64 -o sema4ai-darwin-x64.vsix
- uses: actions/upload-artifact@v4
with:
name: sema4ai-darwin-x64.vsix
path: ./sema4ai/sema4ai-darwin-x64.vsix
- name: Publish pre-release to vscode marketplace
run: vsce publish --packagePath ./sema4ai-darwin-x64.vsix -p $VSCODE_VSCE_TOKEN --pre-release
env:
VSCODE_VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}
# Deal with Darwin arm64 --------------
- name: Download rcc for darwin
run: python -m dev download-rcc darwin
- run: vsce package --pre-release --target darwin-arm64 -o sema4ai-darwin-arm64.vsix
- uses: actions/upload-artifact@v4
with:
name: sema4ai-darwin-arm64.vsix
path: ./sema4ai/sema4ai-darwin-arm64.vsix
- name: Publish pre-release to vscode marketplace
run: vsce publish --packagePath ./sema4ai-darwin-arm64.vsix -p $VSCODE_VSCE_TOKEN --pre-release
env:
VSCODE_VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}