Commit eec8556b by twb

Update .gitlab-ci.yml

parent 19ef976b
Pipeline #977 passed with stages
in 3 seconds
stages:
- build
- deploy
cache:
paths:
- node_modules/
variables:
UMI_ENV: "prod"
PROJECT_PATH: "/sport/"
init:
build_job:
stage: build
only:
- release
script:
- echo ${UMI_ENV}
- echo ${PROJECT_PATH}
- yarn --ignore-optional --registry=https://registry.npm.taobao.org
- echo 'hello test' > ./out.js
#build:
# stage: build
# only:
# - release
# script:
# - yarn build
#
deploy:
- echo "test" > ./out.js
artifacts:
paths:
- ./out.js
expire_in: 1 week
deploy_job:
stage: deploy
only:
- release
script:
- cp -f ./out.js /tmp/out.js
- echo "end deploy"
\ No newline at end of file
dependencies:
- build_job
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment