Skip to content

Commit faa183d

Browse files
ci: 取消beta分支自动编译
1 parent b2a7c0a commit faa183d

File tree

1 file changed

+1
-59
lines changed

1 file changed

+1
-59
lines changed

.onedev-buildspec.yml

Lines changed: 1 addition & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,5 @@
11
version: 18
22
jobs:
3-
- name: CI/CD
4-
jobExecutor: genshin-map-shell
5-
steps:
6-
- !CommandStep
7-
name: cd the workspace and pull from oneDev
8-
runInContainer: false
9-
interpreter: !DefaultInterpreter
10-
commands:
11-
- cd @secret:workspace-path@
12-
- git checkout -q dev
13-
- git checkout . && git clean -xdf -e .env.*.local
14-
- git pull -r --autostash
15-
useTTY: false
16-
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
17-
- !CommandStep
18-
name: download dependency
19-
runInContainer: false
20-
interpreter: !DefaultInterpreter
21-
commands:
22-
- cd @secret:workspace-path@
23-
- sudo rm -rf ./node_modules
24-
- pnpm i
25-
useTTY: false
26-
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
27-
- !CommandStep
28-
name: build
29-
runInContainer: false
30-
interpreter: !DefaultInterpreter
31-
commands:
32-
- cd @secret:workspace-path@
33-
- pnpm run build:dev
34-
useTTY: false
35-
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
36-
- !CommandStep
37-
name: move dist
38-
runInContainer: false
39-
interpreter: !DefaultInterpreter
40-
commands:
41-
- cd @secret:workspace-path@
42-
- cp -rf dist/** /www/wwwroot/map_register_v3
43-
useTTY: false
44-
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
45-
triggers:
46-
- !BranchUpdateTrigger {}
47-
retryCondition: never
48-
maxRetries: 3
49-
retryDelay: 30
50-
cpuRequirement: 250
51-
memoryRequirement: 256
52-
caches:
53-
- key: npm-cache
54-
path: ~/.npm
55-
timeout: 3600
563
- name: push to github
574
jobExecutor: genshin-map-shell
585
steps:
@@ -65,12 +12,7 @@ jobs:
6512
force: false
6613
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
6714
triggers:
68-
- !DependencyFinishedTrigger
69-
projects: map_register_v3
70-
jobDependencies:
71-
- jobName: CI/CD
72-
requireSuccessful: true
73-
artifacts: '**'
15+
- !BranchUpdateTrigger {}
7416
retryCondition: '"Log" contains "无法访问"'
7517
maxRetries: 10
7618
retryDelay: 30

0 commit comments

Comments
 (0)