33 lines
554 B
YAML
33 lines
554 B
YAML
stages:
|
|
- build
|
|
- upload
|
|
- download
|
|
|
|
|
|
node-build:
|
|
image: node:20
|
|
stage: build
|
|
script:
|
|
- yarn config set registry https://registry.npm.taobao.org/
|
|
- yarn install
|
|
- yarn run build
|
|
- tar -zcvf dist.tar.gz dist
|
|
artifacts:
|
|
paths:
|
|
- dist
|
|
|
|
upload:
|
|
image: curlimages/curl:latest
|
|
stage: upload
|
|
script:
|
|
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file dist.tar.gz "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/dists/0.0.1/dist.tar.gz"'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# artifacts:
|
|
# paths:
|
|
# - dist
|