Skip to content

Commit 07b296a

Browse files
committed
Fix: Move circleci release pipeline back into the config.yaml
1 parent 581c5ae commit 07b296a

File tree

2 files changed

+63
-64
lines changed

2 files changed

+63
-64
lines changed

.circleci/config.yml

+63
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,61 @@ version: 2.1
22

33
setup: true
44

5+
on_tag_filter: &on_tag_filter
6+
filters:
7+
branches:
8+
ignore: /.*/
9+
tags:
10+
only: /^v.+/
11+
512
orbs:
613
path-filtering: circleci/[email protected]
714

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+
860
workflows:
961
setup-workflow:
1062
jobs:
@@ -14,3 +66,14 @@ workflows:
1466
(sqlmesh|tests|examples|web/server)/.* python true
1567
pytest.ini|setup.cfg|setup.py python true
1668
\.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

.circleci/continue_config.yml

-64
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
version: 2.1
22

3-
on_tag_filter: &on_tag_filter
4-
filters:
5-
branches:
6-
ignore: /.*/
7-
tags:
8-
only: /^v.+/
9-
103
orbs:
114
python: circleci/[email protected]
125

@@ -44,50 +37,6 @@ commands:
4437
- run: circleci-agent step halt
4538

4639
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-
9140
style_and_unit_tests:
9241
parameters:
9342
python_version:
@@ -220,16 +169,3 @@ workflows:
220169
- main
221170
- ui_style
222171
- 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

0 commit comments

Comments
 (0)