目前,我有两个主要项目。
1-) Vue 项目,其中包含(IOS 和 Android 的 webviews、网站和我们 Electron 的渲染器),它们共享组件和 API。
2-) 为(windows、darwin、linux)构建桌面应用程序的电子项目
我想自动化我们的构建、发布过程。我目前的设置..
before_script:
- apt-get update
- apt-get install zip unzip
- rm -rf vue-project
- git clone vue-project
- cd vue-project
- git checkout dev
- git pull
- sed -i "/\b\(areaCode\|inline-svg-loader\)\b/d" ./packages/devtool/package.json
- yarn install
- ln -s vue-project/packages/desktop/ web
- npm install
build_darwin:
stage: build
script:
- npm run package -- darwin --deploy
cache:
paths:
- vue-project/node_modules
- node_modules
Run Code Online (Sandbox Code Playgroud)
基本上在捆绑电子项目之前,它会克隆 vue-project 安装依赖项并捆绑电子渲染器,然后在完成时。我正在运行包。
我想将这两个不同的工作分开。无论如何我可以使用来自不同项目 gitlab-CI 管道的工件吗? …
continuous-integration gitlab gitlab-ci gitlab-ci-runner electron