Commit eec8556b by twb

Update .gitlab-ci.yml

parent 19ef976b
Pipeline #977 passed with stages
in 3 seconds
stages:
- build
- deploy
cache: cache:
paths: paths:
- node_modules/ - node_modules/
variables: variables:
UMI_ENV: "prod" UMI_ENV: "prod"
PROJECT_PATH: "/sport/" PROJECT_PATH: "/sport/"
init: build_job:
stage: build stage: build
only: only:
- release - release
script: script:
- echo ${UMI_ENV}
- echo ${PROJECT_PATH}
- yarn --ignore-optional --registry=https://registry.npm.taobao.org - yarn --ignore-optional --registry=https://registry.npm.taobao.org
- echo 'hello test' > ./out.js - echo "test" > ./out.js
artifacts:
#build: paths:
# stage: build - ./out.js
# only: expire_in: 1 week
# - release deploy_job:
# script:
# - yarn build
#
deploy:
stage: deploy stage: deploy
only: only:
- release - release
script: script:
- cp -f ./out.js /tmp/out.js - cp -f ./out.js /tmp/out.js
- echo "end deploy" dependencies:
\ No newline at end of file - 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