File tree 2 files changed +63
-64
lines changed
2 files changed +63
-64
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,61 @@ version: 2.1
2
2
3
3
setup : true
4
4
5
+ on_tag_filter : &on_tag_filter
6
+ filters :
7
+ branches :
8
+ ignore : /.*/
9
+ tags :
10
+ only : /^v.+/
11
+
5
12
orbs :
6
13
path-filtering :
circleci/[email protected]
7
14
15
+ jobs :
16
+ publish :
17
+ docker :
18
+ - image : cimg/python:3.10
19
+ resource_class : small
20
+ steps :
21
+ - checkout
22
+ - attach_workspace :
23
+ at : web/client
24
+ - run :
25
+ name : Publish Python package
26
+ command : make publish
27
+
28
+ gh-release :
29
+ docker :
30
+ - image : cimg/node:16.14
31
+ resource_class : small
32
+ steps :
33
+ - run :
34
+ name : Create release on GitHub
35
+ command : |
36
+ GITHUB_TOKEN="$GITHUB_TOKEN" \
37
+ TARGET_TAG="$CIRCLE_TAG" \
38
+ REPO_OWNER="$CIRCLE_PROJECT_USERNAME" \
39
+ REPO_NAME="$CIRCLE_PROJECT_REPONAME" \
40
+ CONTINUE_ON_ERROR="false" \
41
+ npx https://github.com/TobikoData/circleci-gh-conventional-release
42
+
43
+ ide-build :
44
+ docker :
45
+ - image : cimg/node:19.8
46
+ resource_class : medium
47
+ steps :
48
+ - checkout
49
+ - run :
50
+ name : Install packages
51
+ command : npm --prefix web/client ci
52
+ - run :
53
+ name : Build IDE
54
+ command : npm --prefix web/client run build
55
+ - persist_to_workspace :
56
+ root : web/client
57
+ paths :
58
+ - dist
59
+
8
60
workflows :
9
61
setup-workflow :
10
62
jobs :
@@ -14,3 +66,14 @@ workflows:
14
66
(sqlmesh|tests|examples|web/server)/.* python true
15
67
pytest.ini|setup.cfg|setup.py python true
16
68
\.circleci/.*|Makefile|\.pre-commit-config\.yaml common true
69
+
70
+ - gh-release :
71
+ << : *on_tag_filter
72
+ - ide-build :
73
+ << : *on_tag_filter
74
+ requires :
75
+ - gh-release
76
+ - publish :
77
+ << : *on_tag_filter
78
+ requires :
79
+ - ide-build
Original file line number Diff line number Diff line change 1
1
version : 2.1
2
2
3
- on_tag_filter : &on_tag_filter
4
- filters :
5
- branches :
6
- ignore : /.*/
7
- tags :
8
- only : /^v.+/
9
-
10
3
orbs :
11
4
python :
circleci/[email protected]
12
5
@@ -44,50 +37,6 @@ commands:
44
37
- run : circleci-agent step halt
45
38
46
39
jobs :
47
- publish :
48
- docker :
49
- - image : cimg/python:3.10
50
- resource_class : small
51
- steps :
52
- - checkout
53
- - attach_workspace :
54
- at : web/client
55
- - run :
56
- name : Publish Python package
57
- command : make publish
58
-
59
- gh-release :
60
- docker :
61
- - image : cimg/node:16.14
62
- resource_class : small
63
- steps :
64
- - run :
65
- name : Create release on GitHub
66
- command : |
67
- GITHUB_TOKEN="$GITHUB_TOKEN" \
68
- TARGET_TAG="$CIRCLE_TAG" \
69
- REPO_OWNER="$CIRCLE_PROJECT_USERNAME" \
70
- REPO_NAME="$CIRCLE_PROJECT_REPONAME" \
71
- CONTINUE_ON_ERROR="false" \
72
- npx https://github.com/TobikoData/circleci-gh-conventional-release
73
-
74
- ide-build :
75
- docker :
76
- - image : cimg/node:19.8
77
- resource_class : medium
78
- steps :
79
- - checkout
80
- - run :
81
- name : Install packages
82
- command : npm --prefix web/client ci
83
- - run :
84
- name : Build IDE
85
- command : npm --prefix web/client run build
86
- - persist_to_workspace :
87
- root : web/client
88
- paths :
89
- - dist
90
-
91
40
style_and_unit_tests :
92
41
parameters :
93
42
python_version :
@@ -220,16 +169,3 @@ workflows:
220
169
- main
221
170
- ui_style
222
171
- ui_test
223
-
224
- release :
225
- jobs :
226
- - gh-release :
227
- << : *on_tag_filter
228
- - ide-build :
229
- << : *on_tag_filter
230
- requires :
231
- - gh-release
232
- - publish :
233
- << : *on_tag_filter
234
- requires :
235
- - ide-build
You can’t perform that action at this time.
0 commit comments