作者 谢彪
1 个管道 的构建 取消

commit yml

... ... @@ -2,15 +2,29 @@
image: node:latest
stages:
- build
- deploy
cache:
paths:
- node_modules/
build:
stage: build
script:
- npm install
- npm run build
artifacts:
paths:
- build/
deploy:
stage: deploy
script:
- mkdir -p public
- cp -r html/* public/
- cp -r build/* public/
artifacts:
paths:
- public
only:
- master # 或者你希望触发部署的分支
\ No newline at end of file
- main # 或者你希望触发部署的分支
\ No newline at end of file
... ...