Skip to content

Commit 78bcc74

Browse files
committed
Merge GH and Pub Release Jobs
1 parent dfd7e52 commit 78bcc74

File tree

1 file changed

+26
-37
lines changed

1 file changed

+26
-37
lines changed

.circleci/config.yml

Lines changed: 26 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -118,25 +118,31 @@ jobs:
118118
command: flutter pub run pana --no-warning --exit-code-threshold 0
119119
- run: flutter pub publish --dry-run
120120

121-
pub_release:
122-
docker:
123-
- image: cirrusci/flutter
124-
steps:
125-
- checkout
126-
- run: chmod +x ./release.sh
127-
- run: ./release.sh
128-
129-
gh_ibg_release:
121+
release:
130122
macos:
131-
xcode: "13.4.1"
132-
working_directory: "~"
123+
xcode: 13.4.1
124+
working_directory: ~
133125
steps:
134-
- checkout:
135-
path: ~/project
136-
- run: git clone https://InstabugCI:[email protected]/Instabug/Escape.git
137-
- run: cd Escape && swift build -c release
138-
- run: cd Escape/.build/release && cp -f Escape /usr/local/bin/escape
139-
- run: cd project && Escape flutter publish
126+
- checkout
127+
- flutter/install_sdk_and_pub:
128+
flutter_version: 3.3.6
129+
app-dir: project
130+
- run:
131+
name: Generate Pigeons
132+
command: sh ./scripts/pigeon.sh
133+
- run:
134+
name: Clone Escape
135+
command: git clone [email protected]:Instabug/Escape.git
136+
- run:
137+
name: Build Escape
138+
working_directory: Escape
139+
command: |
140+
swift build -c release
141+
cp -f .build/release/Escape /usr/local/bin/escape
142+
- run:
143+
name: Publish Package
144+
working_directory: project
145+
command: Escape flutter publish
140146

141147
workflows:
142148
version: 2
@@ -153,24 +159,7 @@ workflows:
153159
- verify_pub:
154160
requires:
155161
- lint_flutter
156-
- hold_pub_release:
157-
type: approval
158-
requires:
159-
- flutter_tests
160-
- flutter_tests_2-10-5
161-
- test_android
162-
- ios_tests
163-
- verify_pub
164-
filters:
165-
branches:
166-
only: master
167-
- pub_release:
168-
requires:
169-
- hold_pub_release
170-
filters:
171-
branches:
172-
only: master
173-
- hold_gh_ibg_release:
162+
- hold_release:
174163
type: approval
175164
requires:
176165
- flutter_tests
@@ -181,9 +170,9 @@ workflows:
181170
filters:
182171
branches:
183172
only: master
184-
- gh_ibg_release:
173+
- release:
185174
requires:
186-
- hold_gh_ibg_release
175+
- hold_release
187176
filters:
188177
branches:
189178
only: master

0 commit comments

Comments
 (0)