Skip to content

Commit 7ebf657

Browse files
🔧 Improve manual deploy job (#3934)
1 parent b16870c commit 7ebf657

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

‎.gitlab/deploy-manual.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,10 @@ step-6_publish-developer-extension:
7070
- node ./scripts/deploy/publish-developer-extension.ts
7171

7272
step-7_create-github-release:
73-
needs:
74-
- step-6_publish-developer-extension
7573
stage: deploy
7674
extends:
7775
- .base-configuration
76+
when: manual
7877
allow_failure: false
7978
script:
8079
- yarn

‎scripts/deploy/deploy-prod-dc.ts‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,17 @@ const GATE_INTERVAL = ONE_MINUTE_IN_SECOND
1212

1313
const version: string = process.argv[2]
1414
const uploadPath: string = process.argv[3]
15-
const withGateMonitors: boolean = process.argv[4] === 'true'
15+
const withMonitorChecks: boolean = process.argv[4] === 'true'
1616

1717
runMain(async () => {
18-
command`node ./scripts/deploy/check-monitors.ts ${uploadPath}`.withLogs().run()
18+
if (withMonitorChecks) {
19+
command`node ./scripts/deploy/check-monitors.ts ${uploadPath}`.withLogs().run()
20+
}
21+
1922
command`node ./scripts/deploy/deploy.ts prod ${version} ${uploadPath}`.withLogs().run()
2023
command`node ./scripts/deploy/upload-source-maps.ts ${version} ${uploadPath}`.withLogs().run()
2124

22-
if (withGateMonitors && uploadPath !== 'root') {
25+
if (withMonitorChecks && uploadPath !== 'root') {
2326
await gateMonitors(uploadPath)
2427
}
2528
})

0 commit comments

Comments
 (0)